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

Is there a way to get the resolution of the users monitor in game?

I am trying to create a GUI system that can adjust to peoples monitor sizes.

1 answer

✓ Accepted answer

Guis will automatically scale to the client's moniter if you're using the Scale member of a UDim2, rather than the offset.

UDim2s are setup like this;

{Scale X, Offset X}, {Scale Y, Offset Y}

So, you're going to have to set the Position and Size properties on the scale sides, rather than offset. 1 being the whole screen, and 0 being none of the screen. Think of it like a percent, but from 0 to 1. So, naturally, .5 would be half of the screen.

1 comment

1

This is particually useful, when trying to integrate phone support

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