Is there a way to set boundaries on how high or how low a Vector3 value could go? (I.e. In a look up or down script that follows the player’s mouse and aims the uppertorso in that direction, how would I make it so that if the player is looking straight up, his back doesn’t like...break)
COMMUNITY QUESTION
How would I make it so a VECTOR3 value does not go past or below a certain number?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
You would need to add that logic into the script. math.min and math.max could help or just include your own if statments
http://robloxdev.com/articles/Operators
So it’s as simple as putting something like math.min(0), math.max(90) or something?
Oh yea forgot about if statements...