RobloxStudioDude

Kill COUNTER ROBLOX STUDIO

Sep 23rd, 2017
1,820
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data