How to prevent elements inside a ScrollingFrame from going beyond its limits?

I have a Frame (red) and inside this, I have a ScrollingFrame (green) inside, in which I have 8 TextButton.
When I scroll, the TextButtons go out of the ScrollingFrame boundary:

a

I want the Textbuttons only inside the green part (ScrollingFrame).
What is wrong?
Below is the project template to make it easier for anyone who wants to download it:
Baseplate.rbxl (44.4 KB)

Try using ClipsDescendants value to true if it’s set to false. It should fix the issue
Snímka obrazovky 2022-07-21 160534

1 Like