Enable Disable error

Hello, I have a dummy, and in the dummy’s head there is a health billboard GUI, and I have a local script that, when I click “Y” on the keyboard, will enable the health billboard GUI. and when I click “Y” again, it will disable the health billboard GUI, but the problem is that if the dummy dies and respawns, the script doesn’t enable it again, but when I enable it manually, it works. What is the problem?

local UIS = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local Dummy1 = game.Workspace.Scripts.Dummy
local Dummy1Selection = Dummy1.Selections
local Dummy1Health = Dummy1.Dummy.Head.HealthBarUI

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local played = ReplicatedStorage.Played

local enabled = false
local cooldown = false

UIS.InputBegan:Connect(function(Input)
	if Input.KeyCode == Enum.KeyCode.Y then
		if enabled == false and cooldown == false and played.Value == true then
			cooldown = true
			enabled = true
			game.SoundService.Ken:Play()
			player.PlayerGui.KenHaki.BlueKen.ImageTransparency = 0.95
			wait(0.05)
			player.PlayerGui.KenHaki.BlueKen.ImageTransparency = 0.9
			wait(0.05)
			player.PlayerGui.KenHaki.BlueKen.ImageTransparency = 0.85
			local SizeKen = game.Players.LocalPlayer.PlayerGui.KenHaki.BlueKen:TweenSizeAndPosition(
				UDim2.new(2, 0,2, 0),
				UDim2.new(-0.5, 0,-0.5, 0),
				Enum.EasingDirection.InOut,
				Enum.EasingStyle.Linear,
				0.5,
				false
			)
			Dummy1.Selections.HeadSelection.Adornee = Dummy1.Dummy.Head
			Dummy1.Selections.LeftArmSelection.Adornee = Dummy1.Dummy["Left Arm"]
			Dummy1.Selections.LeftLegSelection.Adornee = Dummy1.Dummy["Left Leg"]
			Dummy1.Selections.RightArmSelection.Adornee = Dummy1.Dummy["Right Arm"]
			Dummy1.Selections.RightLegSelection.Adornee = Dummy1.Dummy["Right Leg"]
			Dummy1.Selections.TorsoSelection.Adornee = Dummy1.Dummy.Torso
			for i, v in pairs(Dummy1Selection:GetChildren()) do
				v.Visible = true
				if Dummy1Health.Enabled == false then
					Dummy1Health.Enabled = true
				end
			end
			wait(1.5)
			cooldown = false
		elseif enabled == true then
			enabled = false
			local SizeKen = game.Players.LocalPlayer.PlayerGui.KenHaki.BlueKen:TweenSizeAndPosition(
				UDim2.new(0, 35,0, 31),
				UDim2.new(0.488, 0,0.481, 0),
				Enum.EasingDirection.InOut,
				Enum.EasingStyle.Linear,
				0.5,
				false
			)
			game.SoundService.KenOff:Play()
			player.PlayerGui.KenHaki.BlueKen.ImageTransparency = 0.85
			wait(0.05)
			player.PlayerGui.KenHaki.BlueKen.ImageTransparency = 0.9
			wait(0.05)
			player.PlayerGui.KenHaki.BlueKen.ImageTransparency = 0.95
			wait(0.05)
			player.PlayerGui.KenHaki.BlueKen.ImageTransparency = 1
			for i, v in pairs(Dummy1Selection:GetChildren()) do
				v.Visible = false
				if Dummy1Health.Enabled == true then
					Dummy1Health.Enabled = false
				end
			end
		end
	end
end)

its the line:

				if Dummy1Health.Enabled == false then
					Dummy1Health.Enabled = true
				end

when dummy respawn everything work expect this line