Points prizes Roblox is known as the award system in Roblox world to showcase the player achievements and participation. Every game will have the individual leaderboard which ranks every player based on the amount of points they have earned within the game.
Each game has the unlimited amount of player points that it is able to be distributed and the developer of the game has full discretion on how to award points to their players. On the other words, the points are able to be awarded for playing for the particular amount of time, for reaching milestones in the game, winning tournaments, or anything else the developer feels is appropriate.
How to use the point prizes Roblox? According to the official page of Roblox on Wiki, point prizes Roblox can be awarded to the specific player with the AwardPoints function. This one requires the user ID of the player, as well as the number of points to award. All the developers can award the unlimited amount of player points to their users.
What are the functions of point prizes Roblox? The award points attempt to award points to a player. If this one is successful, it will return the uploaded point totals of the player. Aside from that, if it is successful, this function will fire the Points Awarded event. Keep in mind that this function will only work in the server script. There are two parameters of award points. The fist one is int userID (the user ID of the player to award points to) and the second one is int amount (the number of points to award to the player). As for the returns, there is tuple.
The function of this one returns the user Id the points were awarded to, the new point total the user has in the game, and the total number of points the user now has. The get game point balance returns the total number of points the player has in the current game. This one works with server scripts only. There is only one parameter which is int user ID (the user ID of the player). There is also one return which is int (the total number of points the player has earned in all places in the game). the get point balance returns the total number of points the player has across all games. This one works with server scripts only. Just like get game point balance, the get point balance also has one parameter which is int user ID (the user ID of the player) and one return which is int (the total number of points the player has earned in all games).
Talking about the events, this event passes the updated balance of points the player has in the game and overall. This one fires both on the server and on all clients in the game that awarded the points. Thus, it is able to be handled both in local and server scripts. There are three parameters which are int user Id, int user Balance Game, and int user Total Balance.