How do I make it so that any part inside a folder does the exact same thing when touched.
For example, if one specific part inside a folder was touched I would use:
folder.part.Touched:Connect(
function(touch)
if touch.Parent:FindFirstChild("Humanoid") then
print("part touched")
Humanoid.Health = 0
wait(1)
end
end
)
But then I would have to rewrite this for every single part inside the folder, right?
So how would I avoid this?
