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 » Scripters
Home Search
 

Re: error?

Previous Thread :: Next Thread 
SatanVIII is online. SatanVIII
Joined: 08 May 2011
Total Posts: 2129
17 Dec 2016 04:46 PM
if player.PlayerGui.ThawScreen.Frame.FreezeBar.Size <= UDim2.new(0.1,0,.75,0) then player.PlayerGui.ThawScreen.Frame.Visible = false



(Attempt to compare two userdata values)
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
17 Dec 2016 05:11 PM
Think of it like this: What does that statement even mean? UDim2s do not have built-in functionality to check for less than.

You have to check each value to it's counterpart.
Report Abuse
SatanVIII is online. SatanVIII
Joined: 08 May 2011
Total Posts: 2129
17 Dec 2016 05:12 PM
so could I make another frame that size and set it to see if one bar is smaller to the other bar?


Report Abuse
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
17 Dec 2016 05:13 PM
you can get each individual value from a udim and check there



i'm not any more should not the panda and?
Report Abuse
Richast is not online. Richast
Joined: 26 Nov 2011
Total Posts: 192
17 Dec 2016 05:16 PM
Not sure what you mean in your last post. You'd have to compare each value of the UDim2 rather than the whole thing.

Like so;

if Frame.Size.X.Scale<= 1 and Frame.Size.Y.Scale<= 1 then
blah
end

Replacing "1" with whatever value you had.
Report Abuse
Richast is not online. Richast
Joined: 26 Nov 2011
Total Posts: 192
17 Dec 2016 05:17 PM
^ That was to Satan
Report Abuse
SatanVIII is online. SatanVIII
Joined: 08 May 2011
Total Posts: 2129
17 Dec 2016 05:21 PM
Would scale make it stop saying it's a userdata value?


Report Abuse
Richast is not online. Richast
Joined: 26 Nov 2011
Total Posts: 192
17 Dec 2016 05:23 PM
Yes it should.
Report Abuse
SatanVIII is online. SatanVIII
Joined: 08 May 2011
Total Posts: 2129
17 Dec 2016 05:24 PM
alright after crashing my computer twice its fixed, thank you.


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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