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

Set GUI to Scale at Constant Rate as Parent?

Reedited it to clarify: I have a shop GUI that has a scaled width. On the left is a banner that has a 210 offset and on the right is a shop header that has a scaled with. I want it to extend from the border of the offset banner to the way edge of the shop GUI, however, it's not scaling at the same rate as the shop GUI is.

Here's a video of it happening: https://i.gyazo.com/587f23ea9d3782da000a9b40829b8f8e.mp4

As seen in the video, the distance to the right border of the shop GUI changes. Is there a way to make them scale at a constant rate either through editing properties (preferably) or through a script?

Thanks for your help :)

2 comments

0

Are you sure the offset is 0 as the scale is 0.5?

0

Yes

1 answer

SOLVED: All I had to do was set the offset to a negative value, which will compensate for the width that the banner takes up. This will allow it to scale at a constant rate compared to its parent :)

1 comment

0

*The size dimensions

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