Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-5

May someone please write this script? [closed]

Asked by 10 years ago

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 :)

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?

2 answers

Log in to vote
0
Answered by
JoLLDS 5
10 years ago

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
0
yes!! Convorus 1 — 10y
0
Works? :) JoLLDS 5 — 10y
0
Sadly no...line 12 error. If you could fix that that would be great!! Convorus 1 — 10y
0
ok JoLLDS 5 — 10y
View all comments (5 more)
0
Could u fix it? :) Convorus 1 — 10y
0
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 JoLLDS 5 — 10y
0
shapes r the same Convorus 1 — 10y
0
Please, vote for +1 on my reputation ;) JoLLDS 5 — 10y
Ad
Log in to vote
6
Answered by 10 years ago

This is not a request site.

3
shutup assflap Convorus 1 — 10y