First, let's see if your game can even qualify for Roblox Points.
The Technical Definition:
> Each game in ROBLOX has a budget of points that can be distributed to its players. Points are added to the budget every time a player makes a purchase in the game with Robux. Spending Robux includes buying game passes and developer products. A server script can check on the available balance of points in a game with the GetAwardablePoints() function. This function simply returns how many points are currently available to distribute to players.
Right now, for every sunk ROBUX, one point is generated. That is, if 100 ROBUX is spent, than 30 ROBUX is sent to ROBLOX and 70 ROBUX is sent to the user (presuming the user is BC), and thus, 30 points are generated.
Does you game make money? (In game purchases, Game Passes, etc..)
If your answer is no, stop there.
Otherwise, keep following. Here you can see the AwardPoints Method. You would use that, and fire it whenever a player gets a goal.
Example scripts:
1 | function GivePoints(User) |
2 | local PointsService = Game:GetService( "PointsService" ) |
3 | PointsService:AwardPoints(User.userId, 2 ) |
6 | game.Players.PlayerAdded:connect(GivePoints) |
As a Script in the PlayerGui
03 | function GivePoints(User) |
04 | local PointsService = Game:GetService( "PointsService" ) |
05 | PointsService:AwardPoints(User.userId, 2 ) |
08 | while wait(TimeRequired * 60 ) do |
09 | GivePoints(script.Parent.Parent) |
But be careful! A game has limited points to hand out to people.
Locked by BlueTaslem
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?