HowToRoblox

TeleportScriptA

Oct 2nd, 2019
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. function teleport()
  2.     local Players = game.Players:GetPlayers()
  3.     for i = 1, #Players do
  4.         Players[i].Character.HumanoidRootPart.CFrame = game.Workspace.DoorB.TeleportTo.CFrame + Vector3.new(0, 3, 0)
  5.     end
  6. end
  7.  
  8. script.Parent.Touched:connect(function()
  9.     teleport()
  10. end)
Add Comment
Please, Sign In to add comment