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 :)
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
Closed as Not Constructive by Sublimus, TheeDeathCaster, and Articulating
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?