You should make it in a script not localscript:
02 | local PointsService = Game:GetService( "PointsService" ) |
05 | game.Players.PlayerAdded:connect( function (player) |
07 | local pointsToAward = PointsService:GetAwardablePoints() |
09 | local universeBalance = PointsService:GetGamePointBalance(player.userId) |
11 | if ( pointsToAward > 0 and universeBalance = = 0 ) then |
12 | PointsService:AwardPoints(player.userId, 1 ) |
17 | PointsService.PointsAwarded:connect( function (userId, userBalanceinUni, userBalance) |
19 | local message = Instance.new( 'Message' , game.Workspace) |
20 | message.Text = "Point awarded to " .. userId .. ". This player now has " .. userBalance .. " points total!" |
also Thank the roblox wiki.
Closed as Not Constructive by AmericanStripes
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?