I found this PP pad script for my game, but it didn't let me respawn. I want this script to respawn so people won't stand there and get all the PPs. This is the script:
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
You don't need to check if there's enough points. Everyone has infinite points to give out now.
Yea, but still.
What exactly do you mean by making the script "respawn"?
Like when you touch the pad, it takes you back to the spawn.