Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PS = Game:GetService("PointsService")
- game.Players.PlayerAdded:connect(function(plr)
- local balance = PS:GetGamePointBalance(plr.userId)
- local stat = plr:WaitForChild("leaderstats")
- local RAP = plr:WaitForChild("RAP")
- if RAP.Value - balance > 0 then
- PS:AwardPoints(plr.userId, RAP.Value - balance)
- else
- print('nop')
- end
- end)
- while wait(60) do
- for i,plr in pairs(game.Players:GetChildren()) do
- local balance = PS:GetGamePointBalance(plr.userId)
- local stat = plr:WaitForChild("leaderstats")
- local RAP = plr:WaitForChild("RAP")
- if RAP.Value - balance > 0 then
- PS:AwardPoints(plr.userId, RAP.Value - balance)
- else
- print('nop2')
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement