Advertisement
PresidentIvan

Roblox Kill For Currency

Jan 30th, 2019
926
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. --[[ Made by PresidentIvan!
  2. Enjoy! ]]--
  3.  
  4. -- Leaderboard script. Put this script in Workspace or ServerScriptService!
  5. game.Players.PlayerAdded(function(player)
  6.     local folder = Instance.new("Folder",player)
  7.     folder.Name = "leaderstats"
  8.     local currency1 = Instance.new("IntValue",folder)
  9.     currency1.Name = "XP"
  10.  
  11. end)
  12.  
  13. -- Kill For XP script. Put this script in Workspace or ServerScriptService
  14. game.Players.PlayerAdded:Connect(function(p) p.CharacterAdded:Connect(function(c)
  15.     c.Humanoid.Died:Connect(function() local cv = c.Humanoid:FindFirstChild("creator") if cv
  16.         then local k = cv.Value if k ~= p then k.leaderstats.XP.Value =
  17.             k.leaderstats.XP.Value + 100 end end end) end) end))
  18.  
  19. --[[ Quick things, you can just change the value instead of 100, you can change it to any number you want. And, you can change the leaderstats/currency if you want, it could be anything, XP, Points, Cash, Bucks, Money, any kind! ]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement