I need help with scripting this. I have tried many online tutorials but no luck, I tried imputing a lua script from the roblox scripting wiki but it did not work. Maybe it was outdated? Okay, in summary I need a script that triggers a function after a player has died and respawned, I can do the rest. I don't know if this sounds pushy, sorry if it does.
Use Player.CharacterAdded. Or you can use a localscript in StarterCharacterScripts.