I want a brick (spawned in the script) that changes colors and shapes all by random. Can someone please write this? I will +1 you :)
✓ ANSWER ACCEPTED
May someone please write this script?
2 answers
✓ Accepted answer
Do it ;)
function getAllChildren(place,table_)
for i,v in pairs(place:GetChildren()) do
table_[#table_ + 1] = v
getAllChildren(v, table_)
end
end
local children = {}
getAllChildren(game.Workspace, children)
while true do
for i = 1,#children do
children[i].BrickColor.Number = math.random(1,1032)
wait() -- no lagging
end
wait() -- no lagging
end
This is not a request site.
1 comment
3
shutup assflap
This discussion is preserved as it was. New answers, comments, and votes are closed.

9 comments
yes!!
Works? :)
Sadly no...line 12 error. If you could fix that that would be great!!
ok
Could u fix it? :)
function getAllChildren(place,table_) for i,v in pairs(place:GetChildren()) do table_[#table_ + 1] = v getAllChildren(v, table_) end end local children = {} getAllChildren(game.Workspace, children) while true do for i = 1,#children do if children[i].ClassName == "CornerWedgePart" or children[i].ClassName == "FlagStand" or children[i].Cl
Here is teh script: https://docs.google.com/document/d/1LEDM4kcnvVFJtCG49pl4cpi0_JieekiSEWhUKgKkFv4/edit?usp=sharing
shapes r the same
Please, vote for +1 on my reputation ;)