#kill logs
1 messages · Page 1 of 1 (latest)
it dont work
Its because whatever kills them doesnt properly assign a creator tag
how do u make it
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
@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")
?
That one is
this
with that
@ocean garden
Send this one as well
Just so I can check
thats in the one i just sent
"--print(Player.Name.." killed "..Killed.Name.." with "..Wpn.." from "..math.floor(Distance/0.1)*0.1 .." studs")"
Ohh I se
see
But
Well thats not what im going to add
But anyways
Nvm
Ill soon send the upgrades
ok ty
can u send it in a script??
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
?
So you want the kill logs command to work?
This makes it work
For your gun script
what guns were used, who killed who
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?
Did you add this? Yes / No?
no
Well add it or it wont work at all
omg
my point is, killlogs cant work with this
it wont lemme send kill logs
You cant make this send kill logs
Add the blacks things I added
So it adds stuff to the kill logs
Understood?
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
But its not the whole thing
Its only the part I changed
So paste that
Or NVM ill send the whole file
Wait
what
I think this is it
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
ok
Just to verify things work
ok
Did it work?
blank
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
You know what ill try to rescript a better killlogs myself
Sure
ty
ok
I think this one works
first 1 worked 4 me