I'm new to scripting and I want to know how to use the "Died" function.