Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

ScreenGui's in Studio differ from in-game?

I usually use a Frame with

UDim2.new(1, 0, 1, 0)

and then add all other components under the mainframe that contain a UDim of

UDim2.new(0, x, 0, x)

but it doesn't seem to work, and screws up.

I am really not fond of how the scaling and pixel size system works.

2 comments

0

You're not really specifying anything. Is the first new UDim2 size, or position? Is the second size or position? What's your issue? What defines x?

0

All are sizes, x represents any real number.

1 answer

✓ Accepted answer

This happens because the screen you're using in studio is smaller then the only you're using online. While testing how your gui looks you should always check if it fits in various sizes.

4 comments

0

Various sizes of what? Is there a way to portray the in-game screen size on studio? Any specific scale or pixel size?

0

Various sizes of windowsize. Drag it out of the studio window and resize it.

0

Thanks.

0

Mind clicking the accept answer button below here if this helped you to a solution? Cheers :D

This discussion is preserved as it was. New answers, comments, and votes are closed.