Detecting which axis a touched event was fired from

ive been trying to create a touched event that wouldn’t fire if the part was touched from the Y axis, so far nothing has worked, any help?

I don’t know of a built-in function that accomplishes this. This topic may help, though no solution was marked:

Personally, I would have a conditional statement that runs with the BasePart.Touched event that checks the player part that touched it against the touched part. For example, if you jumped up and touched a part the function would check something like Character.Head.Position.Y < Part.Position.Y. I have never done this though and I can see it being buggy/ inefficient. Best of luck!

1 Like