So, I am a beginner at scripting and wanted to try something out that I learned using the basics. I wanted to make an endless supply of brick to spawn and stack before falling, and I wanted all of them to be different colors. I got the spawning right, but only the first brick changes color. How do I fix this?
while true do
Instance.new("Part", Workspace)
game.Workspace.Part.BrickColor = BrickColor.Random()
wait(0.1)
end

2 comments
If you don't understand, here is what I am doing. https://ibb.co/kZ3edF
If my answer was sufficient, there's an "accept answer" button beneath it :)