Hit detection for a zombie other than Touched events?

I’m making zombies and I have this problem where I have a debounce for zombies attacking players, and a zombie deals damage to a player whenever they touch them using a .Touched event, however if the player stays still and the zombie is pressing up against the player the touched event does not fire again.

I thought of maybe waiting for the Touched event and then firing GetTouchingParts until no players are found, but when I tried using this it kind of didn’t work, though I didn’t really try to make an effective system for that so maybe I just implemented it wrong.
Is this the best way or is there another, better way?

You could use while true do in front of the touched event.

1 Like

Maybe you should try magnituge (Probably spelt it wrong, sorry if I did)

1 Like

Ah yes I can check the magnitude between the zombie and player chasing, thanks!

2 Likes