I want it to make the color spread faster and much more randomly; it seems to jump from one block to the next. (video will be linked shortly)
function onClicked()
for i, v in pairs (script.Parent.Parent.TronT:GetChildren()) do
if v:isA("BasePart") and v.BrickColor ~= ("Institutional white") and v.Name ~= ("button") then
print(v)
local myArray = {v}
local target = myArray[math.random(#myArray)]
print(target, "is being cleansed")
target.BrickColor = BrickColor.new("Institutional white")
target.Material = ("Neon")
wait(0.00000001)
end
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
LINK TO VIDEO ---> https://youtu.be/dt1_2WJJTDc
