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: attempt to compare two userdata values

Previous Thread :: Next Thread 
lowvillan is not online. 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
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
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 is not online. 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 is not online. 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 is not online. lowvillan
Joined: 14 Sep 2010
Total Posts: 725
04 May 2014 04:51 PM
@Rofl
Thanks
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