Advertisement
dubleeyrblxx

Rainbow Brick -- Roblox

Jul 27th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.05 KB | None | 0 0
  1. -- Disco Brick
  2. -- Made by HarryPitty348
  3. -- Special thanks to Dubleey
  4. local RainbowBrick = game.Workspace.RainbowBrick -- Variable for part
  5. game.Workspace.RainbowBrick.Color = Color3.fromRGB(237, 234, 234) -- What color it will start off as
  6. while true do -- Begins a loop
  7.     RainbowBrick.Color = Color3.fromRGB(255, 0, 0) -- Makes brick red
  8.     wait(0.1) -- Waits zero point one seconds before changing colors again.
  9.     RainbowBrick.Color = Color3.fromRGB(255, 176, 0) -- Turns it into orange and continues making a rainbow.
  10.     wait(0.1)
  11.     RainbowBrick.Color = Color3.fromRGB(255, 255, 0)
  12.     wait(0.1)
  13.     RainbowBrick.Color = Color3.fromRGB(0, 255, 0)
  14.     wait(0.1)
  15.     RainbowBrick.Color = Color3.fromRGB(40, 127, 71)
  16.     wait(0.1)
  17.     RainbowBrick.Color = Color3.fromRGB(0, 0, 255)
  18.     wait(0.1)
  19.     RainbowBrick.Color = Color3.fromRGB(0, 255, 255)
  20.     wait(0.1)
  21.     RainbowBrick.Color = Color3.fromRGB(255, 0, 191)
  22.     wait(0.1)
  23.     RainbowBrick.Color = Color3.fromRGB(89, 34, 89)
  24.     print('Rainbow complete') -- Sends a message to Studio Output that the rainbow is done
  25. end -- Ends the loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement