Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I make this script respawn?

Asked by 9 years ago

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)

0
You don't need to check if there's enough points. Everyone has infinite points to give out now. Tkdriverx 514 — 9y
0
Yea, but still. User#5689 -1 — 9y
0
What exactly do you mean by making the script "respawn"? Perci1 4988 — 9y
0
Like when you touch the pad, it takes you back to the spawn. User#5689 -1 — 9y

Answer this question