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

How do you make a script that you are awarded a Player Point if you buy something in your game? [closed]

Asked by 10 years ago

The wiki post doesn't help me much. I want to know how I could make a script that if someone buys a developer product from my game Racker that they will be awarded a Player Point.

Closed as Not Constructive by Articulating

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
magnalite 198
10 years ago

At the moment player points are in beta and you have to be on the beta testing list to sell them. Also it is currently against the rules to sell developer products for the sole purpose of giving player points (just as a heads up).

Run this online to see if you can award player points.

print(game:GetService("PointsService"):GetAwardablePoints())

If that outputs a number other than 0 it means you can award points! Use this to award them.

game:GetService("PointsService"):AwardPoints(player.userId, 1)

Ad
Log in to vote
0
Answered by
funzrey 58
10 years ago

article: Plr pts

That article helps you

0
I already said the wiki post didn't help much. I need like a strip of code. coldice231 45 — 10y
0
stop begging for the code. show us what you tried, so sorry funzrey 58 — 10y