Advertisement
Aeyao

poop

Apr 18th, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. camera = game.Workspace.CurrentCamera
  2. local cam_rot = camera.CoordinateFrame - camera.CoordinateFrame.p
  3. local cam_scroll = (camera.CoordinateFrame.p - camera.Focus.p).magnitude
  4. local ncf = CFrame.new(camera.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(0.008, -0.008, 0)
  5. camera.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  6. --put in firing place--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement