Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:connect(function(player)
- local folder = Instance.new("Folder",player)
- folder.Name = "leaderstats"
- local currency1 = Instance.new("IntValue",folder)
- currency1.Name = "Cash"
- player.CharacterAdded:connect(function(character)
- character:WaitForChild("Humanoid").Died:connect(function()
- local tag = character.Humanoid:FindFirstChild("creator")
- if tag ~= nil then
- if tag.Value ~= nil then
- currency1.Value = currency1.Value + 10 --This is the reward after the player died.
- end
- end
- end)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement