Delete this delete this delete this

Delete this delete this delete this

1 Like

Well… First of all we need to address your methods…
You do know you can iterate and adjust values to reproduce the same outcome?

What are you trying to do exactly?

Don’t feel like reading all of that.


(Goes on for 257 lines of the same type of text…)

Delete this delete this delete this

1 Like

Delete this delete this delete this

1 Like

No, we need to change how you’re doing it.

What exactly changes on each frame, is it just the position?

1 Like

Delete this delete this delete this

1 Like

Mind showing me a picture of the end product it produces?

1 Like

Delete this delete this delete this

1 Like
local IMG2RBX = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
for i = 1, 256 do
local newFrame = Instance.new("Frame", IMG2RBX);
newFrame.BorderSizePixel = 0;
newFrame.BackgroundColor3 = Color3.fromRGB(255,255,255);
newFrame.Size = UDim2.new(0,1,0,1);
newFrame.Position = UDim2.new(0, 0, 0, 0);
wait()
end

You have too much local variables. Use a for loop.

1 Like

Delete this delete this delete this

1 Like

You still need to edit the position and color. :stuck_out_tongue:

Hence why i’m trying to ask you what it’s supposed to look like.

1 Like

Delete this delete this delete this

1 Like

Oh ok, so pull that data from the array for each frame then put it into the pos/color in the loop.

1 Like

Delete this delete this delete this

1 Like

Do you need help setting up the array or figuring out how to connect it in the loop?

1 Like

Delete this delete this delete this

1 Like

Get an array with color/pos and tie it into the loop.

Use the key for the tile layout.

1 Like

Delete this delete this delete this

1 Like

Function or no function, works the same way. You’ll need to make an array.

1 Like

PosAndColor = {
{colorvalue, posvalue},
{colorvalue, posvalue},
{colorvalue, posvalue},
}

If the positions just make a shape you can use math to get rid of that issue or use a UIGridLayout and number the order they go in based off the key of the main array; however, the gridlayout can mess up the image.

1 Like