How can I do a line trace and only check against a specific instance of an object?

Thank youu, this is just what I needed <3