generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Less than

Previous Thread :: Next Thread 
awsomeness7878 is not online. awsomeness7878
Joined: 23 Nov 2008
Total Posts: 9512
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
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
24 May 2012 03:53 PM
If script.Value.Value < 10 then
Report Abuse
awsomeness7878 is not online. awsomeness7878
Joined: 23 Nov 2008
Total Posts: 9512
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
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
24 May 2012 04:01 PM
userdata.... What is this Script's Parent?
Report Abuse
awsomeness7878 is not online. awsomeness7878
Joined: 23 Nov 2008
Total Posts: 9512
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
awsomeness7878 is not online. awsomeness7878
Joined: 23 Nov 2008
Total Posts: 9512
24 May 2012 04:05 PM
oh wait, nevermind, force is a vector... *facepalm*
Report Abuse
FlightTheory is not online. FlightTheory
Joined: 29 Sep 2011
Total Posts: 156
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image