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

Is there a plugin that allows me to change the gui positions?

So I have a ton of GUI's with UDim2.new(0,100,0,100) and when you test it on any other platform than computer, it appears MASSIVE. and the gui's block the screen so, I was wondering if there are any plugins for this or if I could just easily fix it in one whole script but the algorithm is hard because when you convert UDim2.new(0,100,0,100) to UDim2(.1,0,.1,0) sometimes, .1 isn't actually the same as 100.

Any plugins would be great or solutions to this.. Thx

4 comments

0

there are UIConstraints

0

WOAh tHAts fast

0

wait so if I put in a ui constraint in every gui, it will scale and i can import it back from the server into the studio?

0

I've never touched ui constraints but I'm assuming they'll constrain guis in some way. you should test it out

1 answer

So I assume you're wanting to convert Offset to Scale for aspect ratio. Also, quick tip. When using GUI elements it's best to use RelativeXX instead of RelativeXY | X is the most important of a screen's size, also when using RelativeXX use Scale and don't use the GUI editor (Those 8 squares around a gui element) Use the numbers in the properties tab. Now that we got that out of the way, Converting Offset to Scale can be tricky, sometimes. What you want to do is divide the X of your gui element of the ScreenGUI's property AbsoluteSize or AbsolutePosition, keep that in mind. Not sure, but it's either one by it's X. So that's GuiElement X / AbsoluteSize X | I've only done this for the X axis, the Y axis was a little bit weird it didn't necessarily give the the exact same size as before, but it did for the X. Now plugins, there are a couple plugins that allow you to convert Offset to Scale. I don't know any of them besides a Converter my friend made, it might be outdated. I'm not sure, but here it is anyway.

2 comments

0

Alright i'll test this shinjaa

0

Alright :D

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