I have been reading this;
http://wiki.roblox.com/index.php?title=Points_tutorial
Here are a few questions I have to ask.
Is there a limit on how much points you can award?
Is it possible to award a certain amount on a number value?
How would I be able to award them? (This is on wiki but I still don't understand)
How would I award points to a certain player? (Someone who clicked a button)
Will this display on the game leaderboard? (Game Page)
Please help me understand the point awarding system better.
Answers/Comment will be upvoted if answers one of these questions. I will accept a random answer when all questions are answered.
Thank you for reading.
1) No, developers can award an unlimited amount of player points to their users.
2) Of course, just index the Value
property of your NumberValue when awarding.
3) The AwardPoints
function does what you want. Usage looks like this:
local points = game:GetService("PointsService") local player = game.Players.Goulstem --Player to award local amount = 420 --Amount to award points:AwardPoints(player.UserId,amount)
4) I'm sure you could figure it out now that you know how to award points
5) Yes, all points will be displayed on the game leaderboard.
You have to get the points service by doing
local PS = Game:GetService("PointsService") --You can name it whatever
then if you want to award points, you need their userId. You get the user id by doing "player.userId"
You award points by doing
PS:AwardPoints(userid, num)