How to limit transform.Rotate

The ways i tried doesn’t works

Anyone has any ideas? I’m interested in topic too.

Can you guys be more specific? The only answer to the general question, “How do you limit rotation?”, is literally to just stop rotating when you reach the limit. What exactly is the problem that you’re trying to solve?