Advertisement
MandB

Kill For Cash

Aug 10th, 2021
1,427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. game.Players.PlayerAdded:Connect(function(player)
  2. local leaderstats = Instance.new("Folder")
  3. leaderstats.Name = "leaderstats"
  4. leaderstats.Parent = player
  5.  
  6. local cash = Instance.new("NumberValue")
  7. cash.Name = "Cash"
  8. cash.Value = 0
  9. cash.Parent = leaderstats
  10.  
  11.  
  12. player.CharacterAdded:Connect(function(character)
  13. character.Humanoid.Died:Connect(function(Died)
  14. local creator = character.Humanoid:FindFirstChild("creator")
  15. local leaderstats = creator.Value:FindFirstChild("leaderstats")
  16. if creator ~= nil and creator.Value ~= nil then
  17. leaderstats.Cash.Value = leaderstats.Cash.Value + 80 --How Much Cash You Get after killing somebody
  18. end
  19. end)
  20. end)
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement