I tried having the code detect if it is being touched by something called "Explosion", but it doesn't work.
health = script.Parent.Parent.Parent.Health local debounce = false function onHit(toucher) if debounce == false then debounce = true if toucher.Name == "Explosion" then health.Value = health.Value - 10 print (health.Value) wait(3) debounce = false script.Parent:Destroy() end end end script.Parent.Touched:connect(onHit)