Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService("Players").LocalPlayer or game:GetService("Players"):GetPropertyChangedSignal("LocalPlayer"):Wait() or game:GetService("Players").LocalPlayer
- local v30 = Vector3.new()
- local root = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
- local humanoid = game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid")
- local Stepped = game:GetService("RunService").Stepped
- local function triggerSpec(part)
- if abort then return end
- --look at it then press key
- local cam = workspace.CurrentCamera
- cam.CameraType = "Scriptable"
- cam.CFrame = CFrame.new(cam.CFrame.p,part.Position)
- wait()
- cam.CameraType = "Custom"
- end
- local function waitWhile(t,exitFunc)
- local elapsed = 0
- local increment = 0.1
- t = (t == nil or t <= 0) and 0.001 or t
- increment = (increment > t) and t or increment
- while elapsed < t and (exitFunc==nil or exitFunc(elapsed)) do
- elapsed = elapsed + wait(t-elapsed < increment and t-elapsed or increment)
- end
- return elapsed
- end
- local function bigTP(cf)
- --Shit method for free compatibility. Use better methods.
- sign = sign or 1
- player.PlayerGui.MainGui.Minimap.ImageLabel.Visible = false
- workspace.CurrentCamera.CameraType = "Scriptable"
- while (root.CFrame.p - cf.p).magnitude > 4 and not abort do
- local bigTPcf = (root.CFrame.p - bigTPcf1.p).magnitude > 100 and bigTPcf1 or bigTPcf2
- stepconn = Stepped:Connect(function()
- root.CFrame = bigTPcf
- root.Velocity,root.RotVelocity=v30,v30
- end)
- waitWhile(3,function() return root:FindFirstChild("BodyGyro")==nil end)
- stepconn:Disconnect()
- if root:FindFirstChild("BodyVelocity") then root.BodyVelocity.Parent = nil end
- if not abort then
- root.CFrame = cf + Vector3.new(0,5*sign,0)
- stepconn = Stepped:Connect(function() root.Velocity,root.RotVelocity=v30,v30 end)
- end
- if root.Parent and root.Parent:FindFirstChild("\80\97\114\97\99\104\117\116\101") then
- root.Parent["\80\97\114\97\99\104\117\116\101"]:Destroy()
- end
- waitWhile(0.2)
- if root.Parent and root.Parent:FindFirstChild("\80\97\114\97\99\104\117\116\101") then
- root.Parent["\80\97\114\97\99\104\117\116\101"]:Destroy()
- end
- if not abort then root.CFrame = cf end
- waitWhile(0.3)
- stepconn:Disconnect()
- end
- player.PlayerGui.MainGui.Minimap.ImageLabel.Visible = true
- workspace.CurrentCamera.CameraType = "Custom"
- end
- bigTP(CFrame.new(90.339157,20.9125443,1318.82336))
- local plr = game:GetService("Players").LocalPlayer
- local v30=Vector3.new()
- local root = plr.Character.PrimaryPart
- local function perfectTP(cf)
- local oldg = workspace.Gravity
- workspace.Gravity = 0
- local door = workspace.Apartments.Skyscraper6.ExitDoor.Touch
- local oldcf = door.CFrame
- local elapsed = 0
- while (root.Position-cf.p).magnitude > 14 and elapsed < 9 and not abort do
- door.CFrame = root.CFrame
- elapsed=elapsed+wait()
- door.CFrame = oldcf
- root.CFrame = cf
- root.Velocity,root.RotVelocity=v30,v30
- elapsed=elapsed+wait(0.5)
- end
- workspace.Gravity = oldg
- end
- perfectTP(CFrame.new(90.339157,20.9125443,1318.82336))
Add Comment
Please, Sign In to add comment