Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Put this in the Part you touch to Teleport
- local Teleport = "Insert Part Name" --Put the name of the Part you wan to teleport to between the ""s.
- 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)
Add Comment
Please, Sign In to add comment