SHARE
TWEET

Untitled

TheXcodeerror Nov 12th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local plr = game:GetService("Players").LocalPlayer
  2. local v30=Vector3.new()
  3.  
  4. local root = plr.Character.PrimaryPart
  5. local function perfectTP(cf)
  6.     local oldg = workspace.Gravity
  7.     workspace.Gravity = 0
  8.     local door = workspace.Apartments.Skyscraper6.ExitDoor.Touch
  9.     local oldcf = door.CFrame
  10.     local elapsed = 0
  11.     while (root.Position-cf.p).magnitude > 14 and elapsed < 9 and not abort do
  12.         door.CFrame = root.CFrame
  13.         elapsed=elapsed+wait()
  14.         door.CFrame = oldcf
  15.         root.CFrame = cf
  16.         root.Velocity,root.RotVelocity=v30,v30
  17.         elapsed=elapsed+wait(0.5)
  18.     end
  19.     workspace.Gravity = oldg
  20. end
  21.  
  22. perfectTP(CFrame.new(-221.723099, 17.8924026, 1578.80261))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top