local press = false
local pointgiver = script.Parent --change part to name the name of the part
pointgiver.Touched:connect(function(pointgiver)--change part to the name of the part
if not press then
press = true
local g = game.Players:GetPlayerFromCharacter(pointgiver.Parent)
if pointgiver:IsA("Part") and (g) then --Makes sure the part is a part
pps = game:GetService("PointsService")--Declares the point service
if pps:GetAwardablePoints() >= 1 then --change 1 to how much points you get for touching the part
local plr = pointgiver.Parent:findFirstChild("Humanoid")
if plr.Health == 100 then
pps:AwardPoints(g.userId, 1) --doesent matter
wait(60)
else
print"not humanoid"
end
end
end
end
press = false
end)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The above script works just like it has no debounce (even though I'm pretty sure I used it correctly) and gives the player 5 times the certain amount of points rather than giving it just once when the player touches it once. |