#One of my functions fires twice!

7 messages · Page 1 of 1 (latest)

dark coral
#

Either connection = arm.Touched:Connect() or at the bottom, hitHum.HealthChanged:Connect()

plz help and if there's any tips you guys have for optimization, feel free to help here too, since I'm kinda new to this.

dark coral
#

nvm it's definetly the HealthChanged one but does anyone know a way to only make it play once?

granite wraith
#

put a cooldown on it i guess

#

with debounce

dark coral
#

sory for taking so long to respond but this is in a serverscript, the localscript that fired this had the deboucne in this, so the problem is still that HealthChanged runs multiple times..

fair glen
#

its probably something with the 'connection'