The rotation code does not work correctly

because when you work with controller, instead of ActorRotation you must use ControlRotation