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

My Player Point Script May Be Broken ??????????

Asked by 10 years ago

i have tried to use htis script for player points but it just wont work so is theere a way that i can like add player points first or something?

function Add(player) local PointsService = Game:GetService("PointsService") PointsService:AwardPoints(player.userId, 2) end game.Players.PlayerAdded:connect(Add)

1
1)Please put your script in a code block. 2)Use "GetAwardablePoints()" to see if you already have PP to award. 3)You can't award PP for nothing, PP must be awarded when an event happens. 4)Use some grammar. kudorey619 138 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago
game.Players.PlayerAdded:connect(function(plr)
points=Game:GetService("PointsService")
award=points:GetAwardablePoints()
if award>=2 then
 points:AwardPoints(plr.userId, 2);

end



end)

I used some scripts from my game, and it looks like it should work

Ad

Answer this question