uhh… ai has if see if workspace.died.Value == 1 and its aint running even then the value ish 1 help me please. -codingMASTER398

cod3:

local players = game:GetService("Players")
players.PlayerAdded:connect(function(player)
	playerayer = player.Name
	print("player added")
	wait(3)
	print("a player's character has been fixed to the dummy")
	player.Character = workspace.Dummy
	wait(2)
	player.Parent.Parent.Workspace.Camera.CameraSubject = workspace.Dummy.Humanoid
	print("camera fixed to humainoid")
	wait(1)
end)
while true do
	wait(0.3)
	if workspace.died.Value == 1 then
			print("cheese")
	wait(8)
	print("a player's character has been fixed to the dummy")
	playerayer.Character = workspace.Dummy
	wait(2)
	playerayer.Parent.Parent.Workspace.Camera.CameraSubject = workspace.Dummy.Humanoid
	print("camera fixed to humainoid")
	wait(1)
	end
end