Can someone help me with this Script? Its pretty simple but Idk whats wrong with it. I want it to rapidly change the Brickcolor randomly. When I run it it changes it once.
lol= true repeat game.Workspace.Part.Color= Color3.new (math.random) wait() game.Workspace.Part.Color= Color3.new (math.random) wait() until lol == false
Well, if you wanted to change the color randomly, you would do this:
while true do game.Workspace.Part.Color= Color3.new(math.random,math.random,math.random) wait() game.Workspace.Part.Color= Color3.new(math.random,math.random,math.random) wait() end
Because Color3 requires 3 values, Red, Green, and Blue. Like this: Color3.new(R,G,B)
. But if you wanted to change the BrickColor randomly, you would do this:
while true do game.Workspace.Part.BrickColor= BrickColor.Random() wait() game.Workspace.Part.BrickColor= BrickColor.Random() wait() end
Hope this helped!
*Note: The R, G, and B values in a Color3 range from 0 - 1. 1 being the brightest of that value, and 0 being the darkest of that value. For example, Color3.new(1,0,0)
is completely red.