local d = false
script.Parent.MouseButton1Down:Connect(function()
local h = script.Parent.Parent.Parent.Parent.Parent.Character:FindFirstChild("Torso")
local s = game.Workspace.ToSpawn
if d == false then
d = true
h.CFrame = s.CFrame
for i = 30,0,-1 do
script.Parent.Text = i
wait(1)
if i >= 0 then
script.Parent.Text = "Teleport to Spawn"
d = false
end
end
end
end)
COMMUNITY QUESTION
someone correct my debounce please... (?)
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
You sould make sure the local h connects with the script.Parent.Parent.Parent, basically that whole line
what...? That's not the problem... the problem is the debounce is not working
put your d = false from line 13 to line 16
alrigth thanks