Get touched parts name from script

Can you get the name of a part that has touched another part via a script?

This is what I have at the moment:

elseif script.Parent.Parts.Body.EPad.Touched.name == "Tool" then

1 Like

You’re looking for the BasePart | Roblox Creator Documentation event.

Part.Touched:Connect(function(hit)
  print(hit.Name)
end
1 Like

Yes, that’s why there’s an event called Touched exists.

1 Like

This has worked, thanks

30 cc
har

1 Like