#guys pls help meeeeeeeee
5 messages · Page 1 of 1 (latest)
by sword
no no its make hard code, (this code when npc die player get cash pls edit this player get skill)
local Humanoid = script.Parent.Humanoid
function died()
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 +10
wait(0.1)
script:remove()
end
end
end
end
Humanoid.Died:Connect(died)
can we call?
** You are now Level 1! **