#kill logs

1 messages · Page 1 of 1 (latest)

ocean garden
#

No but on the Toolbox there is a plugin for that (you have to enable "Include From Unverified creators")

near pecan
#

it dont work

ocean garden
#

Its because whatever kills them doesnt properly assign a creator tag

ocean garden
#

You have to modify the scripts which deal the damage (If you are using the linked sword you should be all good), if not add code to the script which deals damage that adds an ObjectValue named "creator" and the value set to the player which dealt damage, and paren't it to the Humanoid victim (it doesn't have to be a humanoid of a player, make it add to every humanoid that is dealt damage)

#

For example in a gun

#

Ill send an example script

#

I mean an example snippet of a script

#

Wait ill script an example snippet of what the damage script could look like

#
local Debris = game:GetService("Debris")

-- The victim is any humanoid that is dealt damage
-- The damage is the amount of damage dealt
-- Attacker is the one doing the damage (it has to be a player instance, some accept humanoids as well but if its a player then use a player instance)
local function dealDamage(victim, damage, attacker)
    victim:TakeDamage(damage)

    local creatorTag = Instance.new("ObjectValue")

    creatorTag.Value = attacker
    creatorTag.Name = "creator"
    Debris:AddItem(creatorTag, 2)
    creatorTag.Parent = victim
end
#

Like that

near pecan
#

@ocean garden

#

can u modify it to where

#

it says

#

(Player.Name.." killed "..Killed.Name.." with "..weapon.." from "..math.floor(Distance/0.1)*0.1 .." studs")

#

?

ocean garden
#

No not in that script

#

What is the script that kills

ocean garden
#

Thats not the script that does the damage

#

Apparently thats a client script

near pecan
#

its not????

#

@ocean garden

#

is that it?

ocean garden
#

That one is

near pecan
#

ok

#

how would i log

ocean garden
#

Wait

#

Ill send you the upgrades

#

Soon

ocean garden
#

Just so I can check

near pecan
near pecan
ocean garden
#

Ohh I se

#

see

#

But

#

Well thats not what im going to add

#

But anyways

#

Nvm

#

Ill soon send the upgrades

near pecan
#

ok ty

ocean garden
#

Ok here are the upgrades you need to make

#

For kill logs to work

near pecan
#

can u send it in a script??

ocean garden
#

Its in the black parts

#

Meh just write it

#

Im not sure if I messed up something else in the script

#

So its easier for you to write it

#

Also always remember to make variables local otherwise you might get glitchy scripts

near pecan
#

i dont get

#

how it says all that

#

i want it 2 say

ocean garden
#

?

#

So you want the kill logs command to work?

#

This makes it work

#

For your gun script

near pecan
#

yes

#

but

#

how does it say

#

how many studs far away

ocean garden
#

Say what?

#

Oh

#

Well send the the script

#

That

near pecan
#

what guns were used, who killed who

ocean garden
#

Uh

#

Oh

#

Send me your killogs plugin script as well

#

Thats the only way

#

Because for it to tell it in the killlogs

#

It has to

#

be modified

#

I mean

#

Did you This \ / to your gun script?

#

Yes / No?

ocean garden
near pecan
ocean garden
#

Well add it or it wont work at all

near pecan
#

omg

ocean garden
#

my point is, killlogs cant work with this

near pecan
#

it wont lemme send kill logs

ocean garden
#

Add the blacks things I added

#

So it adds stuff to the kill logs

#

Understood?

near pecan
#

hm

#

can u send the black stuff in text pls

#

cause i cant see what it says

ocean garden
#

Ok

#

Here

#

I cant send it to you ill dm it to you

#

I cant dm it to you ill send it as a file

near pecan
#

pl

#

ok

ocean garden
#

But its not the whole thing

#

Its only the part I changed

#

So paste that

#

Or NVM ill send the whole file

#

Wait

near pecan
#

what

ocean garden
#

Now kill logs work

#

If you add this

#

But it still won't show the gun & distance

#

But Ill just want you to use that first

near pecan
#

ok

ocean garden
#

Just to verify things work

ocean garden
#

*Server gunscript

near pecan
#

nope

#

not work

ocean garden
#

Like when you do :killogs?

#

Doesn't it show up in killlogs

#

?

near pecan
#

nop

#

e

ocean garden
#

Oh I forgot

#

One thing to add

#

Oops lol

#

Try this

near pecan
#

ok

ocean garden
#

Did it work?

near pecan
#

testing

#

no work

#

@ocean garden

ocean garden
#

But did anything appear in killlogs?

#

Or is it blank?

near pecan
ocean garden
#

Oh ok

#

So you used the free model one right?

#

Seems to work with me, hmm ill do a bit more testing if its something wrong with the script I wrote

near pecan
#

can

#

u send me it?

#

the link

#

ir

#

or

#

whos it by

#

@ocean garden

ocean garden
#

You know what ill try to rescript a better killlogs myself

near pecan
#

nah

#

whos it by

#

because theres more than

#

1

ocean garden
#

I have soon scripted a better one

#

Here is a better killlogs

near pecan
#

can u make it

#

where it logs the distance, what tool was used

#

etc

ocean garden
#

Sure

near pecan
#

ty

ocean garden
#

Wait

#

A bit

#

Here

#

Wait I have to fix it

near pecan
#

ok

ocean garden
near pecan
#

first 1 worked 4 me

ocean garden
#

Wait im doing a bit of testing

#

with it

#

Ok ill send the one

#

Its now 100% fixed

near pecan
#

ok

#

ty

#

@ocean garden is there a way to make

#

it say its alliases?

ocean garden
#

What?

#

Like player display names?

near pecan
#

so you know how u do default commands

#

in the ' option

#

actually nvm