ScrollingFrame not resizing to amount of TextLabels in it

So I’m making a game that has all of the ROBLOX promo codes, Active ones, and Inactive, and I’m having trouble with the ScrollingFrame I’ve added the TextLabels to.

Currently, I have a UIListLayout under the ScrollingFrame, along with the TextLabels, this is what it looks like. As you can see, there are a lot of TextLabels, and the ScrollingFrame isn’t resizing itself to fit all of them in.

I’m struggling to find why, I think it might be the UIListLayout, but I’m not sure.

Please help, is there a way to fix this?

Thank you! I applied edits to your script because it was erroring, but I’m still having that issue.

The script errors:
Size is not a valid member of Script

So with my edits, I changed

if not v:IsA("UIListLayout") then

to

if not v:IsA("UIListLayout") or v:IsA("Script") then

but I’m still getting that error.