Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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 comment

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.

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.