I am trying to create a script where if you touch a part in the Folder, it destroys itself. However, I also have things inside the folder I don't want to destroy, such as some remote events and integer values. I tried using this script but it doesn't seem to work.
for index, value in pairs(script.Parent:GetChildren()) do
if value then
value:Destroy()
end
end
