If the angle is still off, or isn’t the right axis, then mess around with the number or relocate the math.rad(-180) to a different axis. Hope this helps!
Hey! So sorry for late reply, but try math.rad(90) or math.rad(-90) instead of math.rad(-180). Sorry for the mistake. You didn’t specify how it was rotated so I assumed it was pointing towards the player instead of towards the mouse, apologies!