it rotates normally when I press "move_left", but it doesn't work when I press "move_right", and for some reason everything works just fine when I set the number to 9.5 instead of 9.4
if Input.is_action_just_pressed("move_left"):
if $Animations.rotation.y == 0:
$Animations.rotation.y += 9.4
if Input.is_action_just_pressed("move_right"):
if $Animations.rotation.y == 9.4:
$Animations.rotation.y -= 9.4