GetHeroName - this function caused an error in the combat script, so the error should be looked for in the combat script.
Regarding the script itself: it's unclear why there's a loop; the trigger is written incorrectly - it's missing a function name or is nil.
Thank you, I've fixed it.