I'm not posting any code this time because I'm just asking for an example.
I want to use two non-collidable parts (A and B) placed next to each other to tell the direction a part is traveling. I don't need the exact direction (not a ray or anything), but whether the part hit A then B or B then A. If you're curious, this is to tell if a train is traveling inbound or outbound on a track (only two options for direction).
In the workspace I have a part named A and a part named B, both have CanCollide set to false so that a part would pass through them uninterrupted. Can you use that to tell the direction?
Also, I need this to work even if multiple parts pass through the two objects at the same time.
Sorry for all the reading, BTW

3 comments
So you want to see wheter a moving part would hit A or B first?
Is there a limit of one train per track?
Yes, and I want this to work for every train that passes the two parts.