local PointsService = game:GetService("PointsService")
local Counter = script.Parent local Player = game.Players:FindFirstChild(Counter.Parent.Owner.Value) while not Player do wait() Player = game.Players:FindFirstChild(Counter.Parent.Owner.Value) end
if Player.userId > 0 then while wait(60) do local Amount = Counter.Value / 100 if Amount > 0 then PointsService:AwardPoints(Player.userId,Amount) Counter.Value = Counter.Value - (Amount * 100) end end end

5 comments
PointsService is really REALLy deprecated. You should not use points. I think using points nowadays will give an error.
What you can do is replace them with leaderstats. Here's a tutorial https://create.roblox.com/docs/building-and-visuals/ui/leaderboard-system
it just doesn't work in studio you donkey
Shut up you dirty pig
I think that awarding points is not the best way to make currencies in your game because roblox removed them and they don't want to someone still use them