Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago

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

Log in to vote
1
Answered by
Lakodex 711 Moderation Voter
2 years ago

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.

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!! theking66hayday 841 — 2y
Ad

Answer this question