Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to use playerpoints ?

So i tried and i get this error saying :

PlayerPoints requires beta access and idk whats wrong...

 PointsService = game:GetService("PointsService")	
	
script.Parent.MouseButton1Down:connect(function()
	 
	
	game:GetService("PointsService"):AwardPoints(22745426, 7200)
end)

1 comment

0

I'm guessing the 2274... is your user name? I would just do if player.Name == "BestDeveloper" then awardpoints(player.userId, 7200)

2 answers

✓ Accepted answer

This will help: http://wiki.roblox.com/index.php?title=Player_Points

And notice that you must have Player Points to award them to players, meaning that if you have no Player Points then you can't award any Player Point to players in your game.

1 comment

0

I know how you use playerpoints. I am trying to figure out why this error is occuring. I have playerpoints in the game to award them.

MouseButton1Down or Click? You choose, Problem 1 declared

Problem 2: In line 6, that's not an id... I'll show you the correct script.

script.Parent.MouseButton1Click:connect(function(player)--Creates the function, and calls the clicker (Player)
	game:GetService("PointsService"):AwardPoints(player.userId, 7200) --Gives the player 7200 points... if there are 7200 points available...
end)--Ends the function

The output basically means that you can't do it on Studio, you must go on a live server.

This discussion is preserved as it was. New answers, comments, and votes are closed.