Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// local variables
- local humanoid = script.Parent.Humanoid
- local Alive = true
- --// Player Died function
- humanoid.Died:connect(function()
- if Alive == true then
- Alive = false
- wait(0.25)
- local player = game.Players:GetPlayerFromCharacter(script.Parent)
- local killed = humanoid:FindFirstChild("creator")
- if killed then
- if player ~= killed.Value then
- killed.Value.leaderstats.Cash.Value = killed.Value.leaderstats.Cash.Value + 15 -- '15' aumento y 'Cash' leaderstats
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement