How would I make a similar GUI to this without clipping the frames?

So I want to make a GUI similar to this:
image

But I can’t figure out how the GUI next to the units aren’t clipping, whenever I try to do it, it looks like this:
image

So is there a way to position the white frame next to the Rainbow outline frame without it clipping?

Just turn ClipsDescendants off on the parent.

1 Like

It’s inside a scrollingframe, so if I turn off clipdescendants this will happen:

1 Like

Then parent it somewhere else.

But then how do I position it?

How is it positioned there? Is it in the middle of the character frame and on the far right?

It’s positioned to the right of the unit/character frame

Set the position of the selection frame to the AbsolutePosition of the characterframe which is the top left corner given the anchor point is 0, 0. Add the absolutesize x of the characterframe to the X position and you should have it.
So:

selectionFrame.Position = UDim2.fromOffset(characterFrame.AbsolutePosition.X + characterFrame.AbsoluteSize.X, characterFrame.AbsolutePosition.Y)

Alr ty. It’s funny cuz I was wondering what AbsolutePosition/Size do and reading your messaged made me realise straight away lol

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.