Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Made by PresidentIvan!
- Enjoy! ]]--
- -- Leaderboard script. Put this script in Workspace or ServerScriptService!
- game.Players.PlayerAdded(function(player)
- local folder = Instance.new("Folder",player)
- folder.Name = "leaderstats"
- local currency1 = Instance.new("IntValue",folder)
- currency1.Name = "XP"
- end)
- -- Kill For XP script. Put this script in Workspace or ServerScriptService
- game.Players.PlayerAdded:Connect(function(p) p.CharacterAdded:Connect(function(c)
- c.Humanoid.Died:Connect(function() local cv = c.Humanoid:FindFirstChild("creator") if cv
- then local k = cv.Value if k ~= p then k.leaderstats.XP.Value =
- k.leaderstats.XP.Value + 100 end end end) end) end))
- --[[ 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