Lately a lot of things have been acting weird with the lua on roblox, maybe it's just me. The below script only generates one frame with the position of (20, 0, 1, 0). I'm sure its an error in the way im writing this, what I want it to do is generate 20x20 frames on the part. No error on the output, otherwise I wouldn't be asking for help.
frame = workspace.part.SurfaceGui.Frame
tile = Instance.new("Frame")
tile.BorderSizePixel = 1
tile.Size = UDim2.new(.05, 0, .05, 0)
for i = 1, 20 do
for u = 1, 20 do
tile.Parent = frame
tile.Position = tile.Position + UDim2.new(0.05, 0, 0, 0)
end
tile.Position = tile.Position + UDim2.new(0, 0, 0.05, 0)
end
I'm running this from the command bar.

1 comment
Thank you, I should have known that, obviously the frame was only created one time with my previous code.