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

Help with :GetPointBalance()?

Asked by 9 years ago
local player = script.Parent.Parent

local points = game:GetService("PointsService"):GetPointBalance(player.userId)

while wait() do
    print(points)
    if points >= 100 then
        local award = game:GetService("BadgeService")
        award:AwardBadge(player.userId, badge)  
    end
end

I want it to check a players player point total, but when they get 20 point it continues to say 0, the print is there just for reference, but want I want is to give a player who has 100 or more points a badge which I already have, just need to figure how to check a players current player points within the game.

Answer this question