I have been trying to destroy objects within a folder if it contained a part named "Fake".
Basically there's a folder than has 10 different parts. some parts have a part within them named "fake", how would I destroy the parts that contain the fake part inside them
script.Parent.MouseButton1Click:Connect(function()
local fakepart = game.Workspace["Bridging the Gap"].Map["1"].Piece.Handle:FindFirstChild("Fake")
if game.Workspace["Bridging the Gap"].Map["1"].Piece.Handle:FindFirstChild("Fake") then
game.Workspace["Bridging the Gap"].Map["1"].Piece:Destroy()
end
end)
