I'v been trying to work out how to make a script which gets the children from the model then changes their color to a certain color i.e. Bright blue.
This is horrible:
local children = Workspace.Backpack:GetChildren() for i = 1, #children do children.BrickColor = BrickColor.new("White") end
GetChildren() gets an objects children and should be used in table format.
for a,b in pairs(game.Workspace.BackPack:GetChildren()) do if b:IsA("BasePart") then b.BrickColor = BrickColor.new("White") end end
local children = Workspace.Backpack:GetChildren() for i = 1, #children do children[i].BrickColor = BrickColor.new("Pink") end