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

How to script a Gui to display the same ways on all devices??

How to script a Gui to display the same ways on all devices?? For some reason my plugin that I use doesn't work for this spot. I want it to be at the top of the screen. I have already been having trouble placing it there, because the Studio tools are in the way. And when I run the game I notice a space at the top. I finally got it where I almost wanted it, but on mobile devices it doesn't display well. How would I code it so for mobile players the Gui would fit?? Screenshots

Let me know if you need a screenshot on how it looks inside of studio.

1 answer

✓ Accepted answer

So when you look at the Size of the UI element in game. It will look like this by default

{0,100},{0,100}

Basically. It's {Scale,Offset},{Scale,Offset} and for some reason Roblox likes to default to Offset. Set it to {1,0},{1,0} to fill the entire screen. You can also use Autoscale Lite and open the Plugin UI and click Size > Scale and then size it like normal to have the size be the same on all devices.

1 comment

0

Thanks this helped me alot the plugin I was using for some reason didn't work that's why I thought I might need to script a fix. Thank you!!

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