Thanks for the assistance, I appreciate it, but I'm feeling kinda dumb for not getting this. When I tried rotate_z, even with a clamp the angle would continue to rotate. Actually what I have now, the limiter is the camera_tilt variable. Below I have it set to be 10 degrees in either direction, but the clamp should only have it be 5 degrees if I'm understanding that correctly . But regardless, it rotates 10 degrees in either direction. I was also unable to figure out a way to have them only rotate that many degees once when pressing a single key, though that might have had to do with me having the rotate_z code in an is_action_pressed command, so I've kinda jank'd together a way to get the results, albeit without being able to make the rotation smooth.
This is what I got:
var camera_tilt = 10
func _physics_process(delta):
camera_tilt = clamp(camera_tilt, -5, 5)
if Input.is_action_just_pressed("move_left"):
cam.rotate_z(deg2rad(camera_tilt))
if Input.is_action_just_pressed("move_right"):
cam.rotate_z(deg2rad(-camera_tilt))
if Input.is_action_just_released("move_left"):
cam.rotate_z(deg2rad(-camera_tilt))
if Input.is_action_just_released("move_right"):
cam.rotate_z(deg2rad(camera_tilt))