Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- camera = game.Workspace.CurrentCamera
- local cam_rot = camera.CoordinateFrame - camera.CoordinateFrame.p
- local cam_scroll = (camera.CoordinateFrame.p - camera.Focus.p).magnitude
- local ncf = CFrame.new(camera.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(0.008, -0.008, 0)
- camera.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
- --put in firing place--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement