As roblox added the new feature player points,
How would i get a player point everytime i scored in my football game?
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.
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...
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?