FindFirstChild (Function)
From Legacy Roblox Wiki
|
Description
Example
local child = game.Workspace:FindFirstChild("Brick") if child ~= nil then child:Remove() end
recursive is an optional argument that, when true, will cause FindFirstChild to check through the object's child, it's children's children, and so on.
Example
Structure: Workspace Model Part
local part = game.Workspace:FindFirstChild("Part") -- returns nil local part = game.Workspace:FindFirstChild("Part",true) -- returns Part