It won't find the AwardablePoints for some reason... Help?
local PointsService = Game:GetService("PointsService")
game.Players.PlayerAdded:connect(function(player)
local pointToAward = PointsService:GetAwardablePoints()
local universeBalance = PointsService:GetGamePointBalance(player.userId)
if ( pointsToAward > 999999 and universeBalance == 9999999999) then
PointsService:AwardPoints(player.userId, 1)
end
end)
PointsService.PointsAwarded:connect(function(userId, userBalanceinUni, userBalance)
local message = Instance.new('Message', game.Workspace)
message.Text = "Point awarded to " .. userId .. ". This player now has " .. userBalance .. " points total!"
wait(5)
message:Destroy()
end)
