It Wouldn't Work During Game So I'm Guessing There Is Something Wrong With It
1 | PointsService = game:GetService "PointsService" |
2 | game.Players.PlayerAdded:connect( function (p) |
3 | while true do |
4 | wait( 60 ) |
5 | game:GetService( "PointsService" ):AwardPoints(p.userId, 1 ) |
6 | print ( "1 Player Point Awarded" ) |
7 | end |
8 | end ) |
Remove the first line, it's pointless (pun unintended) and also add an 'if' statement like this:
1 | game.Players.PlayerAdded:connect( function (plr) |
2 | while true do |
3 | wait( 60 ) |
4 | local serv = game:GetService( "PointsService" ) |
5 | if serv:GetAwardablePoints()> 0 then |
6 | serv:AwardPoints(plr.userId, 1 ) |
7 | end |
8 | end |
9 | end ) |
This answer is brought to you buy Chipio Industries
Kinda wondering why you declared a variable for the points service up top and then didn't use it because you ended up getting the service again anyway but you might be getting an error on that top line because you don't have parenthesis to enclose the argument "PointsService"