Player can't respawn

Every time the humanoid health gets down to the bottom, the player won’t ever respawn anymore, will it be by an enemy attack or resetting.

Anyways, do anyone knows how may I fix this?

Thanks in advance ^^ hehe

Can you show screenshots and the code if possible?

Yes, what code though? There are a bunch of scripts on the game

Are you using PlatformStand in your game? Because i had the same issue and had to just make a script that detects death and respawns the character.

I’m not using PlatformStand for anything either

long shot, but is this setting changed?
image

or a possible script from Toolbox changing this ingame?

Nop, the setting is set to 3 even after hitting play.

I just discovered something. This happens solely after I modified the avatar the player has in-game. This is the script which does that, commented:

local Debris = game:GetService("Debris")

local Camera = game:GetService("Workspace").CurrentCamera
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
local NewCharacter
local Avatar

for _, v in pairs (script.Parent:GetDescendants()) do
        if v:IsA("TextButton") then
                v.MouseButton1Up:Connect(function()
                        NewCharacter = v.Parent:FindFirstChildOfClass("Model"):Clone() -- Gets new avatar and clones it, storing on a new variable.

                        Avatar = Instance.new("StringValue")
                        Avatar.Name = "Avatar"
                        Avatar.Value = NewCharacter.Name
                        Avatar.Parent = Player.leaderstats

                        -- Old Character properties = New Character properties.
                        NewCharacter.Parent = game:GetService("Workspace")
                        NewCharacter.HumanoidRootPart.CFrame = Character.HumanoidRootPart.CFrame
                        NewCharacter.HumanoidRootPart.Anchored = false
                        NewCharacter.Name = Character.Name

                        Debris:AddItem(Character, 0.5) -- Deletes the old character.

                        Player.Character = NewCharacter -- If this line weren't here, you could only change characters once.
                        Camera.CameraSubject = NewCharacter -- Fixing camera gets fixed on a location.
                        Character = NewCharacter -- The player's character is now 'NewCharacter'.

                        -- Cloning Animate and Health scripts respectively so the new character can do these things.
                        local Animate = script.Animate:Clone()
                        local Health = script.Health:Clone()

                        Animate.Parent = Character
                        Health.Parent = Character
                        Animate.Enabled = true
                        Health.Enabled = true
                end)
        end
end

Character:WaitForChild("Humanoid").Died:Connect(function()
        if Avatar.Value ~= nil then
                for _, v in pairs (script.Parent:GetDescendants()) do
                        if v.Name == Avatar.Value then
                                NewCharacter = v:Clone()
                                NewCharacter.Parent = game:GetService("Workspace")
                                NewCharacter.HumanoidRootPart.CFrame = Character.HumanoidRootPart.CFrame
                                NewCharacter.HumanoidRootPart.Anchored = false
                                NewCharacter.Name = Character.Name

                                Debris:AddItem(Character, 0.5)

                                Player.Character = NewCharacter
                                Camera.CameraSubject = NewCharacter
                                Character = NewCharacter

                                local Animate = script.Animate:Clone()
                                local Health = script.Health:Clone()

                                Animate.Parent = Character
                                Health.Parent = Character
                                Animate.Enabled = true
                                Health.Enabled = true
                        end
                end
        end
end)