How do I make a dance floor with specific colours? Here's my attempt:
local colours = {
"Really blue",
"Deep orange",
"New Yeller",
"Bright green",
"Really blue",
"Cyan",
"Carnation pink",
"Eggplant",
"White"
}
local randomColour = math.random(1,#colours)
local Parts = game.Workspace.GameParts.unsafeParts:GetChildren()
while true do
for i,v in pairs(Parts) do
if v:IsA("Part") then
v.BrickColor = BrickColor.new(colours[randomColour])
end
end
wait(4)
end

2 comments
Why not use BrickColor.random
ok ill try and test