Advertisement
xmaanzach

Teleport Tutorial

Feb 16th, 2018
1,197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. local Teleport = "Pad2"
  2.  
  3. function Touch(hit)
  4. 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
  5. local Pos = script.Parent.Parent:FindFirstChild(Teleport)
  6. hit.Parent:moveTo(Pos.Position) wait(1)script.Parent.Locked = false script.Parent.Parent:FindFirstChild(Teleport).Locked = false
  7. end
  8. end
  9.  
  10. script.Parent.Touched:connect(Touch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement