I have the noob but I need to finish the give cash on kill script. The Humanoid is named Zombie and the model is caleld Noob
Heres the script:
local Humanoid = script.Parent.Zombie -- Or Zombie Or Whatever
function PwntX_X()
local tag = Humanoid:findFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
local Leaderstats = tag.Value:findFirstChild("leaderstats")
if Leaderstats ~= nil then
Leaderstats.Cash.Value = Leaderstats.Cash.Value + 5
wait(0.1)
script:remove()
end
end
end
end
Humanoid.Died:connect(PwntX_X)
I tried changing all of the Humanoid words into Zombie but didnt work. Can anyone help me? |