Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --list of colors to run through
- local colors = {"Bright red", "Bright blue", "Lime green", "New Yeller", "Hot pink", "Toothpaste", "Deep orange"}
- --creates new part
- local part = Instance.new("Part")
- --Sets part properties
- part.Material = Enum.Material.Neon
- part.Position = Vector3.new(0,0,0)
- part.Size = Vector3.new(1,1,1)
- part.Parent = game.Workspace
- part.Name = "Rainbow Cube"
- --Changes color every half second
- while true do
- for _, color in ipairs(colors) do
- part.BrickColor = BrickColor.new(color)
- wait(.5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement