Advertisement
Guest User

Untitled

a guest
Feb 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local offset = Vector3.new(-5,50,0) local fieldOfView = 90 local player = script.Parent.Parent local camera = game.Workspace.CurrentCamera local runService = game:GetService("RunService") camera.FieldOfView = fieldOfView local function onRenderStep() local playerPosition = player.Character.HumanoidRootPart.Position local cameraPosition = playerPosition + offset camera.CoordinateFrame = CFrame.new(cameraPosition, playerPosition) end runService:BindToRenderStep('Camera', Enum.RenderPriority.Camera.Value, onRenderStep)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement