When someone touch the block it gets multiple points for every touch and i want to add the debounce but i don't know where.
local Pts = script.Parent
Pts.Touched:connect(function(part)
local g = game.Players:GetPlayerFromCharacter(part.Parent)
if part:IsA("Part") and (g) then
pps = game:GetService("PointsService")
if pps:GetAwardablePoints() >= 0 then
pps:AwardPoints(g.userId, 1)
wait(0.1)
end
end
end)

4 comments
Can you make it a script? so its easyer to for me to copy :)
Hmm not sure how.
Oh it is a script it just won't like paste, like that kind of format.
Oh there we go.