Recreate slap mechanic from Talking Ben

Idk if you’ve played talking ben (the little mobile app for kids with a dog) but it has a mechanic where you can swipe left or right on his head to slap him in the according direction. Im trying to recreate this mechanic and so far i’ve figured that I can use TouchSwipe on a GUI for mobile. But i’m having difficulties getting anything that works for PC.

You could try adding a feature where you save up the current mouse position, then after 0.3s you compare previous and current mouse positions, and if it’s higher than x (whatever magnitude you choose) it triggers the slap. I am not experienced at mouse action detection so I don’t really know what else to say.

On the note of this person, your click detections need to be in a local script. When you detect a click, fire a remote event, and when that’s fired, an animation plays.