This is what I have tried
script.Parent.Parent.Chatted:connect(function(msg)
if msg == "test" then
local children = game.Workspace.Tree:GetChildren()
for i = 1, #children do
i, children.BrickColor = BrickColor.new("Brown")
end
end
end)
No script error shows up in the output

1 comment
Thank you sir!