So I have function below that is called in a function named 'shoot()' and the shoot function works but this recoil function does not work. What I am trying to do is, when the gun is shot, the camera will go up a little. Please help, there are no errors.
function recoil()
cam.CFrame = cam.CFrame + Vector3.new(0,1,0)
end

2 comments
This is probably because the camera type is not set to scriptable.
Use rotation or FieldOfView(FOV) rather than literally moving the camera up. You might find that your current method will become undesirable. Source: Personal experience. Making an FPS framework now.