This script sometimes gives up to 50 player points per touch but its only set to give 10. I know why but I dont know how to fix it. Here is the code.
local Part = script.Parent
Part.Touched:connect(function(part)
local player = game.Players:GetPlayerFromCharacter(part.Parent)
if part:IsA("Part") and (player) then
local points = game:GetService("PointsService")
if points:GetAwardablePoints() >= 0 then
points:AwardPoints(player.userId, 10)
wait()
script:remove()
wait(5)
end
end
end)
