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

How can people claim PlayPoints after getting them through Develepor Products? - UNSOLVED

Asked by 10 years ago

It would be nice if I could get a script that allows a to collect player points via developer products after clicking a screenGUI.

2 answers

Log in to vote
0
Answered by 10 years ago

Try this

-- declare service local PointsService = Game:GetService("PointsService")

-- Bind function to player added event game.Players.PlayerAdded:connect(function(player) -- Get total number of points the game has available local pointsToAward = PointsService:GetAwardablePoints() -- Get total number of points this game has already awarded to the player local universeBalance = PointsService:GetGamePointBalance(player.userId) -- Check if the game has points to award and if the player hasn't gotten any points yet. If both are true, then give the player a point. if ( pointsToAward > 0 and universeBalance == 0) then PointsService:AwardPoints(player.userId, 1) end end)

-- Bind function to when points are successfully awarded PointsService.PointsAwarded:connect(function(userId, userBalanceinUni, userBalance) -- Show message indicating that a player has gotten points local message = Instance.new('Message', game.Workspace) message.Text = "Point awarded to " .. userId .. ". This player now has " .. userBalance .. " points total!" wait(5) message:Destroy() end)

0
So where exactly is the develepor products secton that goes with the GUI? Michael007800 144 — 10y
Ad
Log in to vote
-1
Answered by 10 years ago

Do you mean buying player points?

0
Yup Michael007800 144 — 10y
0
Space, please use the Comment System to ask a question such as this. Can't comment? Earn the power by ranking up. AmericanStripes 610 — 10y
0
Sorry I can´t help you with that but you can check the Roblox Wiki, also to award player points you need to spend robux on your game, I hope the bad moderation doesn´t deletes this. SpaceEnder 5 — 10y
0
That was for michael SpaceEnder 5 — 10y

Answer this question