How to make a reset on death gui

I am trying to make a Gui that appears if the player’s health reaches 0 it will appear and if the player clicks reset they respawn normally.Here is an example: gui reset - YouTube But the only issue is I don’t know how to make one and I have a ragdoll on death script that after 10 seconds dead It auto resets me. Here is the ragdoll script:

repeat wait() until script.Parent:IsA("Model")
    local converse = require
    local char = script.Parent
    local R6 = converse(script:WaitForChild("R6"))
    local R15 = converse(script:WaitForChild("R15"))
    local plr = game:GetService("Players"):GetPlayerFromCharacter(char)
    local hum = char:WaitForChild("Humanoid")
    local autoLoads = game:GetService("Players").CharacterAutoLoads

    local function setNetworkOwner()
    	for i, bp in pairs(char:GetChildren()) do
    		if bp:IsA("BasePart") and bp:CanSetNetworkOwnership() then
    	if hum.RigType == Enum.HumanoidRigType.R6 then
    		if autoLoads == true then
    			delay(10, function()

So how would I make the GUI and not have the ragdoll script interfear?

Make sure to do your own research before turning to the forums. Here’s my answer from another thread:

yeah but I mean the ragdoll reset time and the gui one. How would I make it that if i dont click reset it wont auto reset me

The CharacterAutoLoads property of the Players Service would need to be disabled – take note that this disables automatic respawning entirely – the first time the player joins the game, :LoadCharacter() will need to be called on the Player Instance in order to spawn in their default Character for the first time.


Alright im gonna test it right now. If it works