When I run the script the parts do change, but once the script changes all parts the script breaks and throws this error BrickColor is not a valid member of Script, any reason as to why this happens?
local danceFloor = script.Parent:GetChildren()
while true do
for i,v in pairs(danceFloor) do
v.BrickColor = BrickColor.Random() -- script breaks here
wait()
end
end

1 comment
Ah thank you so much I was so confused.