Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Reference to the parts with the specified name
- local partsToDelete = game.Workspace:FindPartsInRegion3(game.Workspace:WaitForChild("WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW").CFrame, Vector3.new(10, 10, 10), nil)
- -- Check if any parts with the specified name were found
- if #partsToDelete > 0 then
- -- Loop through and destroy each part
- for _, part in ipairs(partsToDelete) do
- part:Destroy()
- end
- print("All parts with the specified name have been deleted.")
- else
- print("No parts with the specified name found in the workspace.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement