Increase Frame Size

I’m trying to increase the size of a frame, but it always decreases to 0

image

BEFORE:
image

AFTER:
image

1 Like

UDim2 has no constructor overloads where two tables can be provided. You mean to write:

ActualSlot.Size = UDim2.new(0, SizeX, 0, SizeY)

Which can be simplified with UDim2.fromOffset:

ActualSlot.Size = UDim2.fromOffset(SizeX, SizeY)
2 Likes

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