Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My camera recoil script doesn't work and nothing appears in the output? Help!

Asked by 4 years ago

Ok so I put these lines in a localscritp and whenever the player clicks, it executes. But the lines that make the player's camera recoil doesn't work:

local Camera = game.Workspace.CurrentCamera

Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = Camera.CFrame * CFrame.Angles(0,math.rad(1),0)
Camera.CameraType = Enum.CameraType.Custom

There is nothing appearing in the output. Help will be appreciated.

1 answer

Log in to vote
1
Answered by 4 years ago

Discussed in chat, as it turns out his script is actually fine.

Ad

Answer this question