
Key Required

local DucksFolder = workspace:WaitForChild("Ducks")
local function addHighlight(part)
if part:IsA("BasePart") and not part:FindFirstChildOfClass("Highlight") then
local highlight = Instance.new("Highlight")
highlight.FillColor = Color3.fromRGB(255, 255, 0)
highlight.OutlineColor = Color3.fromRGB(255, 255, 0)
highlight.Parent = part
end
end
-- Recursively scan and highlight all parts inside a parent
local function highlightAllParts(parent)
for _, child in ipairs(parent:GetChildren()) do
if child:IsA("BasePart") then
addHighlight(child)
end
highlightAllParts(child)
end
end
-- Connect a function that handles new descendants added anywhere inside DucksFolder
local function onDescendantAdded(descendant)
if descendant:IsA("BasePart") then
addHighlight(descendant)
end
end
-- Initial highlight of existing parts
highlightAllParts(DucksFolder)
-- Connect the DescendantAdded event to catch all new parts anywhere inside DucksFolder
DucksFolder.DescendantAdded:Connect(onDescendantAdded)



OP
Very Gud