Advertisement
gYGUGTYFGY1802--

Untitled

Jan 18th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. local Teleport = "" --The Name Of The Other Teleporter,Other Teleporter Has To Have A Different Name Than The Other Teleporter
  2. function Touch (hit)
  3. 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
  4. local Pos = script.Parent.Parent:FindFirstChild(Teleport)
  5. hit.parent:moveTo(Pos.Position) wait(1)script.Parent.Locked = false script.Parent.Parent:FindFirstChild(Teleport).Locked = false
  6. end
  7. end
  8. script.Parent.Touched:connect(Touch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement