Mobile Touchscreen not working properly

I want to make a system that can detect when a mobile player taps the screen.

Here’s the problem. I know how to make it detect when a mobile player touches the screen, BUT I can’t figure out how to make it not detect when jumping.

Touch tap doesn’t activate if you drag your finger on the screen, but when you jump, you don’t drag your finger so it activates the function.

1 Like

You might want to check out ContextActionservice

You might also detect if humanoid state is not equal to Jumping then run the function.