With another question in scripting helpers, I found a script that prints all the colors of the game, I used this script to create 1 bar that contains all these colors, but there is a problem, all the colors are out of order and I can not think In a solution

What should I do?

The Script :

local inserted = {};
local text = {};
cutenumber = 0
for i = 1, 1032 do
    local s = tostring( BrickColor.new(i))
    if not inserted[s] then
		cutenumber = cutenumber + 2
        inserted[s] = true
		color = Instance.new("Frame" , script.Parent.Frame )
		color.Size = UDim2.new(0,3,1,0)
		color.Position = UDim2.new(0,cutenumber,0,0)
		color.BorderSizePixel = 0
		color.BackgroundColor3 = BrickColor.new(s).Color
        table.insert(text, "[" .. i .. "] = \"" .. s .. "\"")
		wait()
    end
end

What's happening : https://gyazo.com/bb74cdeb4d4e445e396051b07e4ae736?token=d9ca879d223b523c8b3f7ca70258a938

1 comment