Hello, I made a teleportation script so when you touch a brick it will "teleport" you to a different place.
This is in LocalScript:
wait(1)
player = game.Players.LocalPlayer
button = script.Parent
local debounce = false
function teleport()
if not debounce then
debounce = true
Torso = player.Character.Torso
Torso.CFrame = game.Workspace.middletele.CFrame
end
end
script.Parent.Touched:connect(teleport)
while true do wait()
debounce = false
wait(1)
end
However it wont work.. and I dont know why.. please help me its really important. Thank you.

1 comment
Added a new comment.