Hi, I need help with debugging a slapping system. I've made a simple system but I need one fix - it works like this:
*the player equips a slap tool (invisible, it's serving as an "attack mode" rather than an actual tool)
*when player presses "E", a smack animation is playing and when player's arm is touched AND if the touched part is a character, and has a humanoid, humanoid takes 10 damage
it works fine besides one thing:
when the animation stops, and the arm didnt touch anything (so the character's arms are in a default position, near the hips) upon our arm touching someone else. that person still takes damage
I hope it will be more clear presented on the video.
Link to the scripts (pastebin) : https://pastebin.com/u/BoblokDevelopyyyr/1/nKdGJhup
Scripts hierarchy : as shown on picture
If any info is missing lemme know ;D
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.