Game breaking bug

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    i want to scale a gui by turning it into scale instead of offset
  2. What is the issue? Include screenshots / videos if possible!
    somehow whenever i scale it the size is {nan, 0, inf, 0} this also crashes roblox, and whenever i join it crashes
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    searched on devforum but nothing related

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Hey,

Those sizes shouldn’t be possible… Can we have the link to the game where this is present?

UPDATE: Just checked, those sizes are actually possible but they shouldn’t crash Roblox. What platform are you on?

can you show the script where you set the GUI size? I think its not possible to get
nan [not a number] without a script

how to get nan: math.huge-math.huge

You can actually manually set it by changing the Size property directly inside the properties.

Re-reading your post actually got me thinking…

Do you use any plugins to convert the GUI Size offsets to scale? If so then the problem may be the plugin itself and not Studio.

If so, either use a different plugin or manually set the size.

You can find a manual solution in this post: How can you convert offset size to scale size?

Do you mean {0.1, 0, 0.1, 0}?

That will scale correctly for every device… Otherwise, it will distort on different devices, and end up looking weird. If you wanted to fill the screen, use {1, 0, 1, 0}.

1 Like

Just figured out the gui is a button and the buttons parent, a frame, size is 0,0,0,0 i didnt know this i got a free model so yea