Is there a way I can create something that's similar to a hypothetical FindFirstDescendant? I know such a thing doesn't exist, but I have multiple models where, in order to use FindFirstChild, I would have to dig through the many models INSIDE the models, and give each one a unique name. Is there a way I can avoid doing that, and simply say, within a script, to find a brick by a certain name, that's a descendant somewhere in Workspace?
Right now, here's the relevant script...it's a LocalScript, if that makes a difference:
local plr = game.Players.LocalPlayer local dour = workspace:FindFirstChild("TTDoor1") --Not actually a child; it's a descendant somewhere print(dour.Name)
I guess this is what you want.
for _, v in pairs(workspace:GetDescendants()) do if v.Name == "TTDoor1" then print(v) v.BrickColor = BrickColor.new("Bright green") end end
Instead of FindFirstDescendant(descendant), do FindFirstChild(descendant, true).