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

Is there a player points script? [closed]

Asked by 10 years ago

As roblox added the new feature player points,

How would i get a player point everytime i scored in my football game?

Locked by BlueTaslem

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
9
Answered by 10 years ago

First, let's see if your game can even qualify for Roblox Points.

The Technical Definition: > Each game in ROBLOX has a budget of points that can be distributed to its players. Points are added to the budget every time a player makes a purchase in the game with Robux. Spending Robux includes buying game passes and developer products. A server script can check on the available balance of points in a game with the GetAwardablePoints() function. This function simply returns how many points are currently available to distribute to players.

Right now, for every sunk ROBUX, one point is generated. That is, if 100 ROBUX is spent, than 30 ROBUX is sent to ROBLOX and 70 ROBUX is sent to the user (presuming the user is BC), and thus, 30 points are generated.

Does you game make money? (In game purchases, Game Passes, etc..) If your answer is no, stop there.

Otherwise, keep following. Here you can see the AwardPoints Method. You would use that, and fire it whenever a player gets a goal.

Example scripts:

function GivePoints(User)
    local PointsService = Game:GetService("PointsService")
    PointsService:AwardPoints(User.userId, 2)
end

game.Players.PlayerAdded:connect(GivePoints)

As a Script in the PlayerGui

TimeRequired = 5  -- In minutes.

function GivePoints(User)
    local PointsService = Game:GetService("PointsService")
    PointsService:AwardPoints(User.userId, 2)
end

while wait(TimeRequired * 60) do
    GivePoints(script.Parent.Parent)
end

But be careful! A game has limited points to hand out to people.

Ad
Log in to vote
-1
Answered by
Emg14 10
9 years ago

Roblox is making a big change in both their game and their website. Roblox announced that they will remove the limit of player points which means unlimited! Most people are oppose to this because the means millions of pp's given out in some games. They're also taking out global leaderboard and the display of pp's to public in your profile so pp's aren't that much of a rank system anymore...