local gold = workspace:WaitForChild('gold')
gold.Touched:connect(function(hit)
if hit.Parent:FindFirstChild('Humanoid') then
print('hi')
end
end)
i need help making it so if any part named 'gold' get touched, it prints hi and not just that one part, which is what its doing.

4 comments
why just not copy the part?
there are more than 1 parts named gold. I don't want a million scripts...
im not sure but try GetChildren("gold") in place of waitforchild
:GetChildren() returns a array