I’ll be brief, my teleportation script for some reason only works once and then it doesn’t, i.e. a player teleports but when another player wants to do it he can’t, please someone help me urgently
SCRIPT:
local Teleport = "Tele2"
function Touch(hit)
if script.Parent.Locked == false and script.Parent.Parent:findFirstChild(Teleport).Locked == false then script.Parent.Locked = true script.Parent.Parent:findFirstChild(Teleport).Locked = true
local Pos = script.Parent.Parent:findFirstChild(Teleport)
hit.Parent:moveTo(Pos.Position) wait(1) script.Parent.Locked = false script.Parent.Parent:findFirstChild(Teleport).Locked = false end end
script.Parent.Touched:Connect(Touch)