Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Camera = game.Workspace.Camera
- local Player = game.Players.LocalPlayer
- repeat
- wait()
- until Player.Character
- local Player = Player.Character
- local HumanoidRootPart = Player.HumanoidRootPart
- local Positioner = Instance.new("BodyPosition", HumanoidRootPart)
- Positioner.MaxForce = Vector3.new(0, 0, math.huge)
- Positioner.Position = Vector3.new(0, 0,HumanoidRootPart.Position.Z)
- Camera.CameraType = Enum.CameraType.Scriptable
- Camera.CameraSubject = Player.HumanoidRootPart
- game:GetService("RunService").RenderStepped:connect(function()
- Camera.CFrame = CFrame.new(HumanoidRootPart.CFrame.X, HumanoidRootPart.CFrame.Y, HumanoidRootPart.CFrame.Z + 30)
- Camera.FieldOfView = 50
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement