this should be the initial working script ![]()
local debounce = true
function onTouched(hit)
if debounce == true then
debounce = false
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
game:GetService(“TeleportService”):Teleport(5558713850,player)
wait(0.2)
debounce = true
end
end
end
script.Parent.Touched:connect(onTouched)