game:GetService('Players').PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		character:WaitForChild("Humanoid").Died:Connect(function()
			local aliveingame = player:FindFirstChild("AliveInGame")
			if aliveingame then
				print("WE DID IT")
			end
		end)
	end)
end)

1 comment

1

uh ther nothing in script dat looking for playergui. you can get it by using local playergui = player:WaitForChild('PlayerGui') if AliveInGame is a screengui u can do playergui:FindFirstChild('AliveInGame')