This code is untested but try this out. Let me know if you get any errors!
02 | local PointsService = Game:GetService( "PointsService" ) |
05 | game.Players.PlayerAdded:connect( function (player) |
07 | local universeBalance = PointsService:GetGamePointBalance(player.userId) |
09 | if ( universeBalance = = 0 ) then |
10 | PointsService:AwardPoints(player.userId, 1 ) |
15 | PointsService.PointsAwarded:connect( function (userId, userBalanceinUni, userBalance) |
17 | local message = Instance.new( 'Message' ) |
18 | message.Text = "Point awarded to " .. userId .. ". This player now has " .. userBalance .. " points total!" |
19 | message.Parent = workspace |