Meliodas0_0

Untitled

Aug 1st, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer or game:GetService("Players"):GetPropertyChangedSignal("LocalPlayer"):Wait() or game:GetService("Players").LocalPlayer
  2. local v30 = Vector3.new()
  3. local root = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  4. local humanoid = game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid")
  5. local Stepped = game:GetService("RunService").Stepped
  6.  
  7. local function triggerSpec(part)
  8. if abort then return end
  9. --look at it then press key
  10. local cam = workspace.CurrentCamera
  11. cam.CameraType = "Scriptable"
  12. cam.CFrame = CFrame.new(cam.CFrame.p,part.Position)
  13. wait()
  14. cam.CameraType = "Custom"
  15. end
  16.  
  17. local function waitWhile(t,exitFunc)
  18. local elapsed = 0
  19. local increment = 0.1
  20. t = (t == nil or t <= 0) and 0.001 or t
  21. increment = (increment > t) and t or increment
  22. while elapsed < t and (exitFunc==nil or exitFunc(elapsed)) do
  23. elapsed = elapsed + wait(t-elapsed < increment and t-elapsed or increment)
  24. end
  25. return elapsed
  26. end
  27.  
  28. local function bigTP(cf)
  29. --Shit method for free compatibility. Use better methods.
  30. sign = sign or 1
  31. player.PlayerGui.MainGui.Minimap.ImageLabel.Visible = false
  32. workspace.CurrentCamera.CameraType = "Scriptable"
  33. while (root.CFrame.p - cf.p).magnitude > 4 and not abort do
  34. local bigTPcf = (root.CFrame.p - bigTPcf1.p).magnitude > 100 and bigTPcf1 or bigTPcf2
  35. stepconn = Stepped:Connect(function()
  36. root.CFrame = bigTPcf
  37. root.Velocity,root.RotVelocity=v30,v30
  38. end)
  39. waitWhile(3,function() return root:FindFirstChild("BodyGyro")==nil end)
  40. stepconn:Disconnect()
  41. if root:FindFirstChild("BodyVelocity") then root.BodyVelocity.Parent = nil end
  42. if not abort then
  43. root.CFrame = cf + Vector3.new(0,5*sign,0)
  44. stepconn = Stepped:Connect(function() root.Velocity,root.RotVelocity=v30,v30 end)
  45. end
  46. if root.Parent and root.Parent:FindFirstChild("\80\97\114\97\99\104\117\116\101") then
  47. root.Parent["\80\97\114\97\99\104\117\116\101"]:Destroy()
  48. end
  49. waitWhile(0.2)
  50. if root.Parent and root.Parent:FindFirstChild("\80\97\114\97\99\104\117\116\101") then
  51. root.Parent["\80\97\114\97\99\104\117\116\101"]:Destroy()
  52. end
  53. if not abort then root.CFrame = cf end
  54. waitWhile(0.3)
  55. stepconn:Disconnect()
  56. end
  57. player.PlayerGui.MainGui.Minimap.ImageLabel.Visible = true
  58. workspace.CurrentCamera.CameraType = "Custom"
  59. end
  60.  
  61. bigTP(CFrame.new(90.339157,20.9125443,1318.82336))
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. local plr = game:GetService("Players").LocalPlayer
  71. local v30=Vector3.new()
  72.  
  73. local root = plr.Character.PrimaryPart
  74. local function perfectTP(cf)
  75. local oldg = workspace.Gravity
  76. workspace.Gravity = 0
  77. local door = workspace.Apartments.Skyscraper6.ExitDoor.Touch
  78. local oldcf = door.CFrame
  79. local elapsed = 0
  80. while (root.Position-cf.p).magnitude > 14 and elapsed < 9 and not abort do
  81. door.CFrame = root.CFrame
  82. elapsed=elapsed+wait()
  83. door.CFrame = oldcf
  84. root.CFrame = cf
  85. root.Velocity,root.RotVelocity=v30,v30
  86. elapsed=elapsed+wait(0.5)
  87. end
  88. workspace.Gravity = oldg
  89. end
  90.  
  91. perfectTP(CFrame.new(90.339157,20.9125443,1318.82336))
Add Comment
Please, Sign In to add comment