Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 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. local stat = plr:WaitForChild("leaderstats")
  5. local RAP = plr:WaitForChild("RAP")
  6. if RAP.Value - balance > 0 then
  7. PS:AwardPoints(plr.userId, RAP.Value - balance)
  8. else
  9. print('nop')
  10. end
  11. end)
  12. while wait(60) do
  13. for i,plr in pairs(game.Players:GetChildren()) do
  14. local balance = PS:GetGamePointBalance(plr.userId)
  15. local stat = plr:WaitForChild("leaderstats")
  16. local RAP = plr:WaitForChild("RAP")
  17. if RAP.Value - balance > 0 then
  18. PS:AwardPoints(plr.userId, RAP.Value - balance)
  19. else
  20. print('nop2')
  21. end
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement