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?
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.
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
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.