Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make it so a VECTOR3 value does not go past or below a certain number?

Asked by 5 years ago

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)

0
You would need to add that logic into the script. math.min and math.max could help or just include your own if statments User#5423 17 — 5y
0
So it’s as simple as putting something like math.min(0), math.max(90) or something? NikkoTheJesusMan 3 — 5y
0
Oh yea forgot about if statements... NikkoTheJesusMan 3 — 5y

Answer this question