Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Disco Brick
- -- Made by HarryPitty348
- -- Special thanks to Dubleey
- local RainbowBrick = game.Workspace.RainbowBrick -- Variable for part
- game.Workspace.RainbowBrick.Color = Color3.fromRGB(237, 234, 234) -- What color it will start off as
- while true do -- Begins a loop
- RainbowBrick.Color = Color3.fromRGB(255, 0, 0) -- Makes brick red
- wait(0.1) -- Waits zero point one seconds before changing colors again.
- RainbowBrick.Color = Color3.fromRGB(255, 176, 0) -- Turns it into orange and continues making a rainbow.
- wait(0.1)
- RainbowBrick.Color = Color3.fromRGB(255, 255, 0)
- wait(0.1)
- RainbowBrick.Color = Color3.fromRGB(0, 255, 0)
- wait(0.1)
- RainbowBrick.Color = Color3.fromRGB(40, 127, 71)
- wait(0.1)
- RainbowBrick.Color = Color3.fromRGB(0, 0, 255)
- wait(0.1)
- RainbowBrick.Color = Color3.fromRGB(0, 255, 255)
- wait(0.1)
- RainbowBrick.Color = Color3.fromRGB(255, 0, 191)
- wait(0.1)
- RainbowBrick.Color = Color3.fromRGB(89, 34, 89)
- print('Rainbow complete') -- Sends a message to Studio Output that the rainbow is done
- end -- Ends the loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement