Camera co-ordinate limitations not working

        if (Camera.transform.rotation.x < 45) // FIX THIS!!!
        {
            print("LIMIT");
        }
        else
        {
            print("Your fine");
        }

What I want it to do is if the X rotation is more than 45, it will say ‘LIMIT’, but it just saying LIMIT even when I am not break the limit, no errors or warnings, why doesn’t this work and can you provide a fix? Thanks!

You said you want to print LIMIT when the x-rotation is above 45, yet your condition checks if it is below 45.
Hence it triggers from 0 to 44.99… and prints “Your fine” after reaching 45, which is exactly what you told it to do.
Even then the Unit is not the one you expect, since rotations are not saved as angles.

Generally speaking, computers always do what you told them to, not what you intended.
So in cases like this one it always helps to make sure what you told the computer actually does what you intended :wink:

Thanks for trying to help, I appreciate it! But even though I did that, I just saw Unity keep saying ‘Your fine’. Here is a video to further describe my issue:

Here’s some strongly recommended reading about rotations, which describes fairly precisely the two big things wrong with your code and why. This is an incredibly common misunderstanding about rotations in Unity and that link is the result of answering this question hundreds of times.

Well thanks for the link, I’ll make sure to read it!