Roblox camera not tilting on the Z axis

Hi, so I want to create a peaking effect by tilting the camera on the Z axis, but for some reason this script does not even move the camera, even though it should be working.

workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(0,0,math.rad(10))

My camera type is set to fixed and still doesnt work

What type of script is this & where is it placed?

Running it on the roblox studio console