Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

I have a few questions about the Player Point system and how to award them?

Asked by 7 years ago

I have been reading this;

http://wiki.roblox.com/index.php?title=Points_tutorial

Here are a few questions I have to ask.

  1. Is there a limit on how much points you can award?

  2. Is it possible to award a certain amount on a number value?

  3. How would I be able to award them? (This is on wiki but I still don't understand)

  4. How would I award points to a certain player? (Someone who clicked a button)

  5. 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.

2 answers

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
7 years ago
Edited 7 years ago
  • 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.

Ad
Log in to vote
-1
Answered by 7 years ago

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)

Answer this question