How can a touched:connect(Hit) function ignore players or certain parts?

Can I use a Print() to see the results with GetTouchingParts()?