ok i tried to change this so it changes every brick in my place to any random colour, but without succes.I cant find it in the scripting wiki, Help plz :-)
original script :
-- BouyertheDestroyer
function Paint(Brick)
local Constant = (Brick.BrickColor.r + Brick.BrickColor.b + Brick.BrickColor.g) / 3
Brick.Color = Color3.new(Constant, Constant, Constant)
end
function Search(Object)
wait()
print(Object)
coroutine.resume(coroutine.create(Paint), Object)
local Children = Object:GetChildren()
for X = 1, # Children do
Search(Children[X])
end
end
Search(game.Workspace)
|