Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. local PS = Game:GetService("PointsService")
  2. game.Players.PlayerAdded:connect(function(plr)
  3. local balance = PS:GetGamePointBalance(plr.userId)
  4. print(plr.Name..': '..balance)
  5. local stat = plr:WaitForChild("leaderstats")
  6. local RAP = plr:WaitForChild("RAP")
  7. if RAP.Value - balance > 0 then
  8. PS:AwardPoints(plr.userId, RAP.Value - balance)
  9. else
  10. print('nop')
  11. end
  12. end)
  13. while wait(60) do
  14. for i,plr in pairs(game.Players:GetChildren()) do
  15. local balance = PS:GetGamePointBalance(plr.userId)
  16. print(plr.Name..': '..balance)
  17. local stat = plr:WaitForChild("leaderstats")
  18. local RAP = plr:WaitForChild("RAP")
  19. if RAP.Value - balance > 0 then
  20. PS:AwardPoints(plr.userId, RAP.Value - balance)
  21. else
  22. print('nop2')
  23. end
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement