Hello, I’m trying to add a kill effect to the classic sword, so when you kill someone with the sword, it temporarily creates some ParticleEmitter effect inside of them.
When I kill someone with the sword, it inserts the ParticleEmitter effect in their character (head), however it adds multiple ParticleEmitters instead of one.
I have tried adding a debounce to the code so it only inserts one ParticleEmitter, but it continues to insert multiple ParticleEmitters after a kill with the sword:
I could make the ‘wait’ in line 111 shorter (0.5 seconds for example), but the respawn time is currently 1 second, so that would allow the kill effect to be run twice. And that also means the sword wouldn’t be useable for 0.5 seconds
I’ll continue to work with the script and see if I can figure it out. Thanks