|
| 24 May 2012 03:51 PM |
I'm aware that this line makes it so that the script only goes to this part if that value is equal to 10:
if script.Value.Value == 10 then
But how do I make it so that the script onlygoes to the following part if the value is less than 10? |
|
|
| Report Abuse |
|
|
|
| 24 May 2012 03:53 PM |
| If script.Value.Value < 10 then |
|
|
| Report Abuse |
|
|
|
| 24 May 2012 04:00 PM |
| Are you sure? that doesn't seem to be working... It says "attempt to compare userdata with number" |
|
|
| Report Abuse |
|
|
|
| 24 May 2012 04:01 PM |
| userdata.... What is this Script's Parent? |
|
|
| Report Abuse |
|
|
|
| 24 May 2012 04:04 PM |
well, I acctually kindof exadurated the simplicity of the line to make it easier to explain what I am looking for... Here is the real line:
if script.Parent.Engine.BodyThrust.force < 10000 then
everything is spelled right, and is in the right place.... |
|
|
| Report Abuse |
|
|
|
| 24 May 2012 04:05 PM |
| oh wait, nevermind, force is a vector... *facepalm* |
|
|
| Report Abuse |
|
|
|
| 24 May 2012 04:41 PM |
You could also use <= with that, :) Just encase it is that number exactly, not below but not above. :)
Hope this helped, `FlightTheory |
|
|
| Report Abuse |
|
|