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

Player Points Giving?

Asked by 10 years ago

Im making a minigames server and I want to give a player point whenever someone wins. Is there a way I could do that?

1 answer

Log in to vote
1
Answered by 10 years ago

Yes. Use the AwardPoints method of PointsService.

You use it like this:

Game:GetService("PointsService"):AwardPoints( int userId, int amount )

It returns: userid, the new points total the user has inside the game, and the points total the user has globally.

Note: Make sure you have > 0 points in your points bank (or whatever). You can get this amount with

Game:GetService("PointsService"):GetAwardablePoints()
Ad

Answer this question