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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 26 Nov 2011 |
| Total Posts: 192 |
|
| |
|
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
|
  |
| Joined: 26 Nov 2011 |
| Total Posts: 192 |
|
| |
|
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 |
|
|