How can I deal damage to multiple players without the touch event spamming

I am trying to deal damage with this paw hit thing and when It hits the player it spams the touch event and deals a lot more damage then id like. I also use a debounce. How can I detect when it hits a player deals 30 damage then detects if it hits another player?

you could make a table and every time it hits a player, add that player to said table using table.insert(). when the touched event is fired, check if the player is in said table, and if not deal damage and add them to the table (unless they’re already there). then clear the table when the move is finished.

3 Likes