Hello, I am a beginner scripter on Roblox Studio, and this is one of my first "proper" scripts I made from learning a few bits of scripting from YouTube tutorials (and the forums too). Here is a script for a basic color-changing part I made by myself. The question in mind is on how do I randomize the colors in the script so that I could make a basic dance floor without having to change the color sequences in each part individually. Yes, the script does work, but I want to randomize the color sequences because I don't know how.
local Rainbow = script.Parent
task.wait(3)
Rainbow.Material = "Neon"
print("Neon material has been successfully applied.")
task.wait(3)
print("Executing RGB sequence...")
task.wait(3)
while true do
Rainbow.BrickColor = BrickColor.new "Really red"
task.wait(1)
Rainbow.BrickColor = BrickColor.new "Bright orange"
task.wait(1)
Rainbow.BrickColor = BrickColor.new "New Yeller"
task.wait(1)
Rainbow.BrickColor = BrickColor.new "Lime green"
task.wait(1)
Rainbow.BrickColor = BrickColor.new "Cyan"
task.wait(1)
Rainbow.BrickColor = BrickColor.new "Magenta"
task.wait(1)
end