How to lock a part to only rotate left and right

(not sure if this falls under scripting support but whatever)
so basically i’m trying to use AlignOrientation to lock a part to only rotate left and right(green rotating circle assuming the part is rotated 0,0,0), like a car. i’ve tried using PrimaryAxisOnly, and a lot of other stuff, but whatever i do it inevitably locks it to only rotate tilting(blue rotating circle assuming the part is rotated 0,0,0). i don’t want to use body gyro because it is depreciated, but i have no idea how i would get it to work with AlignOrientation.


recorded the movements i dont want and want just incase my horrible writing skills confused anyone