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

Set GUI to Scale at Constant Rate as Parent?

Asked by 4 years ago
Edited 4 years ago

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 :)

0
Are you sure the offset is 0 as the scale is 0.5? Spjureeedd 385 — 4y
0
Yes Bob4koolest 78 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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 :)

0
*The size dimensions Bob4koolest 78 — 4y
Ad

Answer this question