Ui grid layout problem!

U get this error: Offset cannot be assigned to. at this line

gridLayout.CellSize.X.Offset = 70
2 Likes

Use Udim2.new() for graphical elements.

so Udim2.new(70) or something else

Udim2.new(xScale,xOffset,yScale,yOffset)

but where do I but the numeber 70 then

Instead of xOffset put 70. For the rest of the values put 0 or other preferred values. Since this is size yScale or yOffset should be a positive integer

gridLayout.CellSize.UDim2.new(0,70,0,70)

it says UDim2 is not valid memeber of UDim2

1 Like
gridLayout.CellSize = UDim2.new(0,70,0,70)

You have to set the CellSize TO a UDim2.

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