So in my shop, I am trying to keep the same size, and when looking up how to keep the same aspect ratio, it changes the size and squishes all my items into a small space. But in Assassin, if you do that, it keeps its size.
My Shop: Sorry I didn't know how to import a GIF
Assassin: Link
Hope someone can answer my question! Thank You!
Hey KingStared,
local max_pixels = 1439; -- The max amount of pixels. For me it's 1439 idk what it is for you might be the same but, I think it changes for each screen. Check yours by simply extending a Part's Size all the way and see when the opposite end of the Gui leaves the screen and that's how you find the max amount of pixels in the X coordinate. local scale = -- This is the scale of the X coordinate of the Gui that you currently have. local pixels = scale * max_pixels; -- This is the amount of pixels that your scale is. Just substitute this into your Gui's Size and erase the Scale of the X coordinate. print(pixels)
local max_pixels = 610; -- The max amount of pixels in the Y coordinate. For me it's 610, might be different for you. local scale = -- The scale of the Y coordinate of the Gui that you currently have. local pixels = scale * max_pixels; -- Yea, the formula is pretty much the same but, the maximum pixels for the Y coordinate on my screen is different then the X so I had to make 2 different functions to figure them out. Idk what yours is but, just substitute my max_pixels for yours. print(pixels);
~~ KingLoneCat