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: - 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
bp:SetNetworkOwner(plr)
end
end
end
hum.Died:Connect(function()
if hum.RigType == Enum.HumanoidRigType.R6 then
R6(char)
setNetworkOwner()
if autoLoads == true then
delay(10, function()
plr:LoadCharacter()
end)
end
So how would I make the GUI and not have the ragdoll script interfear?