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

How would I award player points to award points every 60 seconds?

Asked by 10 years ago

Is there a way to use the

while true do

function to do an award player point script?

Another question is how does a game even get player points?

3 answers

Log in to vote
0
Answered by 10 years ago

First of all, read this: http://wiki.roblox.com/index.php?title=Player_Points

-To award PP, you need to have some in the server. Every place has a Points Budget, to know how many PP you have in your place, use GetAwardablePoints().

HOW TO ADD PP IN YOUR PLACE: To add PP to your place, you should use game passes/Developer products and things like that..... To explain more, lets say you made a game pass for 100R$. If someone purchased it, then you will get 10R$ (as you're NBC) and ROBLOX will get 90R$. These 90R$ will be turned to 9000 PP, as 1R$ = 100 PP.

Finally, this is NOT a request site. You must give us a script to fix.

0
I would like to give you reputation, but i cant cause i need atleast 1 rep User#210 0 — 10y
0
Thanks, accepting my answer really helped me. I hope I helped you too. kudorey619 138 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

If you want to give EVERY player points, here's the script:

-----SETUP-----
points = 1 --Change 1 to the number of points you want to give
time = 1 --Change 1 to the number of minutes you want them to wait
---------------

while true do --Yes, you're right, it's a while loop
    players = game.Players:GetChildren() --Number of players
    for i,v in pairs (players) do --For each player....
        PPS = game:GetService("PointsService")
        if PPS:GetAwardablePoints() ~= 0 then --If there are points available then...
            PPS:AwardPoints(v,points) --Awards the points
        end
    end
    wait(time)
end)

--Put this in a NORMAL SCRIPT
Log in to vote
-2
Answered by 10 years ago

Hmm. I think yes. Plus, here's how to get player points for your game. Here's how it works. You sell a gamepass, somebody buys it. So let's see for if it was 50 R$. 10 R$ would be donated to ROBLOX. and then 1 player point is added to your game.

0
This is completely WRONG. If the game pass was for 50R$, then nathen35 gets 5R$ and ROBLOX gets 45R$. Finally, the 45R$ will be turned to PP according to this scale: 1R$ = 100 PP(then 45R$ = 4500 PP). kudorey619 138 — 10y

Answer this question