lowvillan
|
  |
| Joined: 14 Sep 2010 |
| Total Posts: 725 |
|
|
| 04 May 2014 04:45 PM |
I'm trying to compare two values. The scale of a mesh, and also a vector3 value. The snip of code I used is: if m.Scale >= Vector3.new(400, 400, 400) then
So, what alternatives are there? |
|
|
| Report Abuse |
|
|
|
| 04 May 2014 04:47 PM |
... How do you expect to compare three numbers as a whole? What if m.Scale was (500,300,400) The first number would be greater, the second lesser, and the last equal. |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 04 May 2014 04:48 PM |
v = Vector3.new(400, 400, 400)
if m.Scale.x>v.x and m.Scale.y>v.y and m.Scale.z > v.z then |
|
|
| Report Abuse |
|
|
lowvillan
|
  |
| Joined: 14 Sep 2010 |
| Total Posts: 725 |
|
|
| 04 May 2014 04:49 PM |
How would I fix it? By adding the X,Y,Z values m.Scale and the Vector3 Value, then compare? |
|
|
| Report Abuse |
|
|
lowvillan
|
  |
| Joined: 14 Sep 2010 |
| Total Posts: 725 |
|
| |
|