So I was trying to make some sort of thing that'd print something when a specific part is touching the part I tried using this:
function touched()
local parts = script.Parent.Head:GetTouchingParts()
print(script.Parent.Head.Name)
for i,v in pairs(parts) do
print(v.Name)
if v.Name == "Present" then
print("Yay!")
end
end
end
script.Parent.Head.Touched:Connect(touched)
Without much luck because all this does is check if a person touched it then print the name of whater it touched the part with like, Head Torso Arm etc Any tips on how I could do this?

2 comments
the touched event comes with an "otherPart" parameter which is the part it is touching.
How would I use this then