Any way to disable the rotation limit?

I found this rotation code online, Can’t remember where from though. These are the values they set, but maybe its wrong.