I am trying to get this script to run whenever I click a GUI button, But when I get the script to run I want the GUI to delete, then appear again when the player has died. Can anyone help me with this?
This is the script I want to run when I click the GUI button.
https://pastebin.com/raw/CCmRcPr1
If this script is possible to run when clicking a GUI button, please help.

4 comments
can you show us your attempt? and is this your script?
This is 3911 lines long oof
Provide snippets of code at least, 3911 lines is going to take a bunch of hours just to decode.
its only 3911 lines long bc the writer didnt know how to use for loops or animations