Navarone19_CH

leaderboard

Mar 9th, 2019
6,812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. game.Players.PlayerAdded:connect(function(player)
  2. local folder = Instance.new("Folder",player)
  3. folder.Name = "leaderstats"
  4. local currency1 = Instance.new("IntValue",folder)
  5. currency1.Name = "Cash"
  6. player.CharacterAdded:connect(function(character)
  7. character:WaitForChild("Humanoid").Died:connect(function()
  8. local tag = character.Humanoid:FindFirstChild("creator")
  9. if tag ~= nil then
  10. if tag.Value ~= nil then
  11. currency1.Value = currency1.Value + 10 --This is the reward after the player died.
  12. end
  13. end
  14. end)
  15. end)
  16. end)
Add Comment
Please, Sign In to add comment