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

How to use playerpoints ?

Asked by
Teeter11 281 Moderation Voter
10 years ago

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)
0
I'm guessing the 2274... is your user name? I would just do if player.Name == "BestDeveloper" then awardpoints(player.userId, 7200) NinjoOnline 1146 — 10y

2 answers

Log in to vote
3
Answered by 10 years ago

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.

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. Teeter11 281 — 10y
Ad
Log in to vote
-3
Answered by 10 years ago

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.

Answer this question