Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local uis = game:GetService("UserInputService")
- local cas = game:GetService("ContextActionService")
- cas:UnbindAction("moveForwardAction")
- cas:UnbindAction("moveBackwardAction")
- cas:UnbindAction("moveLeftAction")
- cas:UnbindAction("moveRightAction")
- local cam = workspace.CurrentCamera
- local hrp = script.Parent.HumanoidRootPart
- game:GetService("RunService").RenderStepped:Connect(function()
- script.Parent.Humanoid:MoveTo(hrp.Position + Vector3.new(0, 0, 20))
- cam.CameraType = Enum.CameraType.Scriptable
- cam.CFrame = CFrame.new(hrp.Position - Vector3.new(20, 0, 0), hrp.Position)
- end)
- local gui = script:WaitForChild("StartGui")
- gui.Parent = game.Players.LocalPlayer.PlayerGui
- hrp.Anchored = true
- hrp.CFrame = workspace.Obstacles["1"].Start.CFrame * CFrame.Angles(0, 135, 0) + Vector3.new(0, hrp.Size.Y * 1.5, 0)
- uis.InputBegan:Wait()
- gui:Destroy()
- hrp.Anchored = false
Add Comment
Please, Sign In to add comment