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.