So i made a teleporting portal for the player to teleport. But instead when i put my stand or mesh through it it disappears and when I go through the portal they just keep getting more instead of going back when I press the same key.
When i get across the portal :
Before i enter the portal:
https://gyazo.com/20674fed51d1f5b069fb90cbeb02873a
Teleportation Script:
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)