Script:

for i, part in pairs (workspace:GetChildren()) do
	if part.Name == "Part1" or "Part2" then
		print(part.Name)
		part:Destroy()
	end
end

Output:

Camera
Terrain
14:36:58.485 - Cannot Destroy() Terrain

2 comments

0

show us more of ur script cuz thats clearly not the part that prints that

0

also i think you need to do part.Name == "Part1" or part.Name == "Part2"