local Humanoid = script.Parent.Zombie
local ods = game:GetService("DataStoreService"):GetOrderedDataStore("Kills")
function d()
local tag = Humanoid:findFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
ods:IncrementAsync(tag.Value, 1)
wait(0.1)
script:remove()
end
end
end
Humanoid.Died:connect(d)
After this script works, and I check the global leaderboard I made, I see a new name come up called 'creator' and it's kills is set to 1.. I am like 'what is that?' it's supposed to add + 1 kill to the actual person who killed it, not the 'creator'... What can I do? Fixes appreciated |